aboutsummaryrefslogtreecommitdiff
path: root/tests/trantest.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-22 18:16:24 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-22 18:25:33 -0800
commitcef6e70c0b3e92e36b6895e7d6e981b00c702f9b (patch)
tree72db6da5a8a68418f6aa47f99c9e7e1c6eec0ce5 /tests/trantest.h
parent5836e6b0308d8562420256aebff29cc39f5d3344 (diff)
downloadnng-cef6e70c0b3e92e36b6895e7d6e981b00c702f9b.tar.gz
nng-cef6e70c0b3e92e36b6895e7d6e981b00c702f9b.tar.bz2
nng-cef6e70c0b3e92e36b6895e7d6e981b00c702f9b.zip
Select transport using raw URL string.
This is done so that we can provide transport specific logic for URL parsing later (we're going to want this for ZeroTier for example.)
Diffstat (limited to 'tests/trantest.h')
-rw-r--r--tests/trantest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trantest.h b/tests/trantest.h
index 2434171a..9c3b2efb 100644
--- a/tests/trantest.h
+++ b/tests/trantest.h
@@ -117,9 +117,9 @@ trantest_init(trantest *tt, const char *addr)
So(nng_rep_open(&tt->repsock) == 0);
nng_url *url;
- So(nng_url_parse(&url, tt->addr) == 0);
- tt->tran = nni_sp_tran_find(url);
+ tt->tran = nni_sp_tran_find(addr);
So(tt->tran != NULL);
+ So(nng_url_parse(&url, tt->addr) == 0);
nng_url_free(url);
}