aboutsummaryrefslogtreecommitdiff
path: root/tests/compat_reqttl.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-08 00:54:39 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-08 00:54:39 -0700
commit4b53fab25223691f9a4624780f34fe84d18fbedf (patch)
tree9ac3bd96efe5a69d9d985c3d12e44b0c7c8f4aa1 /tests/compat_reqttl.c
parent50532054c0bee3a1ff3324db10f3cdf7b44041e4 (diff)
downloadnng-4b53fab25223691f9a4624780f34fe84d18fbedf.tar.gz
nng-4b53fab25223691f9a4624780f34fe84d18fbedf.tar.bz2
nng-4b53fab25223691f9a4624780f34fe84d18fbedf.zip
Increase the timeouts for compat_reqttl (context switches?)
Also, we need to nn_close(), because the close can reasonably race against nn_term(), causing false test failures.
Diffstat (limited to 'tests/compat_reqttl.c')
-rw-r--r--tests/compat_reqttl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/compat_reqttl.c b/tests/compat_reqttl.c
index 2a0113df..47430485 100644
--- a/tests/compat_reqttl.c
+++ b/tests/compat_reqttl.c
@@ -41,8 +41,8 @@ void device (NN_UNUSED void *arg)
nn_assert (rc < 0 && nn_errno () == EBADF);
/* Clean up. */
- test_close (dev0);
- test_close (dev1);
+ nn_close (dev0);
+ nn_close (dev1);
}
int main (int argc, const char *argv[])
@@ -82,9 +82,9 @@ int main (int argc, const char *argv[])
/* Pass a message between endpoints. */
/* Set up max receive timeout. */
- timeo = 100;
+ timeo = 1000;
test_setsockopt (end0, NN_SOL_SOCKET, NN_RCVTIMEO, &timeo, sizeof (timeo));
- timeo = 100;
+ timeo = 1000;
test_setsockopt (end1, NN_SOL_SOCKET, NN_RCVTIMEO, &timeo, sizeof (timeo));
/* Test default TTL is 8. */