diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-01-22 14:05:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-01-22 17:11:58 -0800 |
| commit | 3d075fad7496ec126c5087d1c36ab7a4af73ce16 (patch) | |
| tree | c5b5d6fe44eaa2996310683b5080de87160b9b41 /tests/trantest.h | |
| parent | 5b1a3af7be4ae712868ae84b9a7d5a974d272b16 (diff) | |
| download | nng-3d075fad7496ec126c5087d1c36ab7a4af73ce16.tar.gz nng-3d075fad7496ec126c5087d1c36ab7a4af73ce16.tar.bz2 nng-3d075fad7496ec126c5087d1c36ab7a4af73ce16.zip | |
fixes #219 transports should take URL structure instead of string address
This eliminates a bunch of redundant URL parsing, using the common
URL logic we already have in place.
While here I fixed a problem with the TLS and WSS test suites that
was failing on older Ubuntu -- apparently older versions of mbedTLS
were unhappy if selecting OPTIONAL verification without a validate
certificate chain.
Diffstat (limited to 'tests/trantest.h')
| -rw-r--r-- | tests/trantest.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/trantest.h b/tests/trantest.h index c85b3429..80f59ff9 100644 --- a/tests/trantest.h +++ b/tests/trantest.h @@ -137,7 +137,10 @@ trantest_init(trantest *tt, const char *addr) So(nng_req_open(&tt->reqsock) == 0); So(nng_rep_open(&tt->repsock) == 0); - tt->tran = nni_tran_find(addr); + nni_url *url; + So(nni_url_parse(&url, tt->addr) == 0); + tt->tran = nni_tran_find(url); + nni_url_free(url); So(tt->tran != NULL); #else ConveySkip("Missing REQ or REP protocols"); |
