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

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