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