aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-06-25 15:48:44 -0700
committerGarrett D'Amore <garrett@damore.org>2017-06-25 15:48:44 -0700
commit9f762db90aefdc95839707013a89ca3680ad3f34 (patch)
tree0fe5581a46a37a96f3f29abea1be96caeac8aeb0 /tests/sock.c
parentbaba9825f11aa6759fccecbf92b4d25fb41be5ec (diff)
downloadnng-9f762db90aefdc95839707013a89ca3680ad3f34.tar.gz
nng-9f762db90aefdc95839707013a89ca3680ad3f34.tar.bz2
nng-9f762db90aefdc95839707013a89ca3680ad3f34.zip
Make reqrep test more robust; sock test faster.
Diffstat (limited to 'tests/sock.c')
-rw-r--r--tests/sock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sock.c b/tests/sock.c
index c43b6fc1..6c6d5b06 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -39,7 +39,7 @@ Main({
Convey("Recv with no pipes times out correctly", {
nng_msg *msg = NULL;
- int64_t when = 500000;
+ int64_t when = 100000;
uint64_t now;
now = nni_clock();
@@ -63,7 +63,7 @@ Main({
Convey("Send with no pipes times out correctly", {
nng_msg *msg = NULL;
- int64_t when = 500000;
+ int64_t when = 100000;
uint64_t now;
// We cheat to get access to the core's clock.
@@ -168,7 +168,7 @@ Main({
So(nng_setopt(sock2, NNG_OPT_RCVTIMEO, &second, sizeof (second)) == 0);
So(nng_listen(sock, "inproc://test1", NULL, NNG_FLAG_SYNCH) == 0);
- So(nng_dial(sock2, "inproc://test1", NULL, 0) == 0);
+ So(nng_dial(sock2, "inproc://test1", NULL, NNG_FLAG_SYNCH) == 0);
So(nng_send(sock, "abc", 4, 0) == 0);
So(nng_recv(sock2 , &buf, &sz, NNG_FLAG_ALLOC) == 0);