aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/tcp/tcp_test.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-01-25 21:39:33 -0800
committerGarrett D'Amore <garrett@damore.org>2021-02-07 13:43:44 -0800
commitb8dc6722281e4d5bd0959a641b63333b605cf608 (patch)
tree64a0f8eb6e5ed63435c57cafa5b8ac293a884786 /src/sp/transport/tcp/tcp_test.c
parente9c28eed5ffb8da59ba8a6805e85936f04bdb644 (diff)
downloadnng-b8dc6722281e4d5bd0959a641b63333b605cf608.tar.gz
nng-b8dc6722281e4d5bd0959a641b63333b605cf608.tar.bz2
nng-b8dc6722281e4d5bd0959a641b63333b605cf608.zip
fixes #1421 Failure in tcp and tls local source handling
Diffstat (limited to 'src/sp/transport/tcp/tcp_test.c')
-rw-r--r--src/sp/transport/tcp/tcp_test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sp/transport/tcp/tcp_test.c b/src/sp/transport/tcp/tcp_test.c
index d23227d7..16c70d7d 100644
--- a/src/sp/transport/tcp/tcp_test.c
+++ b/src/sp/transport/tcp/tcp_test.c
@@ -96,10 +96,12 @@ void
test_tcp_bad_local_interface(void)
{
nng_socket s1;
+ int rv;
NUTS_OPEN(s1);
- NUTS_FAIL(nng_dial(s1, "tcp://bogus1;127.0.0.1:80", NULL, 0),
- NNG_EADDRINVAL);
+ rv = nng_dial(s1, "tcp://bogus1;127.0.0.1:80", NULL, 0),
+ NUTS_TRUE(rv != 0);
+ NUTS_TRUE(rv != NNG_ECONNREFUSED);
NUTS_CLOSE(s1);
}