summaryrefslogtreecommitdiff
path: root/tests/reqrep_tcp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reqrep_tcp.cpp')
-rw-r--r--tests/reqrep_tcp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reqrep_tcp.cpp b/tests/reqrep_tcp.cpp
index b11d5a1..f68d762 100644
--- a/tests/reqrep_tcp.cpp
+++ b/tests/reqrep_tcp.cpp
@@ -31,12 +31,12 @@ int XS_TEST_MAIN ()
void *sb = xs_socket (ctx, XS_REP);
assert (sb);
int rc = xs_bind (sb, "tcp://127.0.0.1:5560");
- assert (rc == 0);
+ assert (rc != -1);
void *sc = xs_socket (ctx, XS_REQ);
assert (sc);
rc = xs_connect (sc, "tcp://127.0.0.1:5560");
- assert (rc == 0);
+ assert (rc != -1);
bounce (sb, sc);