Commit 72af44cb authored by Martin Pitt's avatar Martin Pitt

Allow slightly too small poll duration in /socket/timed_wait test

Sometimes the poll duration in the /socket/timed_wait test is slightly lower
than the requested 100000, causing failures like

  assertion failed (poll_duration > = 100000): (99240 >= 100000)

Adjust the test to also allow some jitter in the "too small" direction, similar
to the already existing span for "slightly too large".
parent d6aa3b3b
......@@ -616,7 +616,7 @@ test_timed_wait (void)
g_clear_error (&error);
poll_duration = g_get_monotonic_time () - start_time;
g_assert_cmpint (poll_duration, >=, 100000);
g_assert_cmpint (poll_duration, >=, 98000);
g_assert_cmpint (poll_duration, <, 110000);
g_socket_close (client, &error);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment