aboutsummaryrefslogtreecommitdiff
path: root/tests/trantest.h
diff options
context:
space:
mode:
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);
}