Skip to content

Commit b3cf9d4

Browse files
committed
Add short sleep to MOBITEX QA test to try to fix flakiness
The MOBITEX QA test if flaky in the Ubuntu PPA build servers. I suspect that this is because the CPU is very constrained and the decoded message arrives after tb.wait() returns. This adds a short wait to try to fix the flakiness.
1 parent f1ae77e commit b3cf9d4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python/components/deframers/qa_mobitex_deframer.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
# SPDX-License-Identifier: GPL-3.0-or-later
1010
#
1111

12+
import time
13+
1214
from gnuradio import gr, blocks, gr_unittest
1315
import numpy as np
1416
import pmt
@@ -59,6 +61,13 @@ def test_mobitex_deframer(self):
5961
self.tb.start()
6062
self.tb.wait()
6163

64+
# Wait some time. In principle tb.wait() should be enough, but I am
65+
# seeing Ubuntu PPA build servers failing this test often because 0
66+
# frames have been received by the message debug. I assume that might
67+
# happen if the sever CPU is very constrained, because I cannot
68+
# reproduce the flakiness locally.
69+
time.sleep(0.5)
70+
6271
num_msgs_desired = len(self.frames_desired)
6372
num_msgs_actual = dbg_frame.num_messages()
6473
self.assertEqual(num_msgs_actual, num_msgs_desired)

0 commit comments

Comments
 (0)