Blame SOURCES/0001-trivial-Relax-the-timing-requirements-on-the-FuDevic.patch

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