summaryrefslogtreecommitdiff
path: root/tests/timeo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/timeo.cpp')
-rw-r--r--tests/timeo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/timeo.cpp b/tests/timeo.cpp
index 2281556..bc73eec 100644
--- a/tests/timeo.cpp
+++ b/tests/timeo.cpp
@@ -66,7 +66,7 @@ int XS_TEST_MAIN ()
assert (rc == -1);
assert (xs_errno () == EAGAIN);
unsigned long elapsed = xs_stopwatch_stop (watch) / 1000;
- time_assert (elapsed, timeout);
+ time_assert (elapsed, (unsigned long) timeout);
// Check whether connection during the wait doesn't distort the timeout.
timeout = 2000;
@@ -79,7 +79,7 @@ int XS_TEST_MAIN ()
assert (rc == -1);
assert (xs_errno () == EAGAIN);
elapsed = xs_stopwatch_stop (watch) / 1000;
- time_assert (elapsed, timeout);
+ time_assert (elapsed, (unsigned long) timeout);
thread_join (thread);
// Check that timeouts don't break normal message transfer.