From 48cea11bd5d3d8c7f7423ad9807b1e537bc051c8 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 8 Nov 2018 20:05:12 +0000 Subject: [PATCH] trivial: Relax the timing requirements on the FuDevice poll test If the poll source is scheduled just at the right time, we might only get 8x '10ms ticks' in a 100ms window. This fixes an occasional build failure on slower hardware and in CI. --- src/fu-self-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fu-self-test.c b/src/fu-self-test.c index 3c774b55..edc0088d 100644 --- a/src/fu-self-test.c +++ b/src/fu-self-test.c @@ -2806,7 +2806,7 @@ fu_device_poll_func (void) fu_test_loop_run_with_timeout (100); fu_test_loop_quit (); cnt = fu_device_get_metadata_integer (device, "cnt"); - g_assert_cmpint (cnt, >=, 9); + g_assert_cmpint (cnt, >=, 8); /* disable the poll */ fu_device_set_poll_interval (device, 0); -- 2.19.1