Skip to content

Commit 3663a5a

Browse files
argilomormj
authored andcommitted
blocks: Increase tolerance in message_strobe and message_debug tests
These tests fail on almost every OSX CI run, with readings as low as 4 on the second num_message() call, and as low as 12 on the third. Signed-off-by: Clayton Smith <[email protected]>
1 parent 057d5e7 commit 3663a5a

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.packaging/conda_recipe/build.sh

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ else
3131
qa_header_payload_demux
3232
qa_hier_block2
3333
qa_hier_block2_message_connections
34-
qa_message_debug
35-
qa_message_strobe
3634
qa_python_message_passing
3735
qa_uncaught_exception
3836
)

gr-blocks/python/blocks/qa_message_debug.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def test_001_t(self):
4444
0, delta=2) # 1st call, expect 0
4545
time.sleep(1.05) # floor(1050/100) = 10
4646
self.assertAlmostEqual(msg_debug.num_messages(),
47-
10, delta=3) # 2nd call == 10
47+
10, delta=8) # 2nd call == 10
4848
time.sleep(1) # floor(2050/100) = 20
4949
self.assertAlmostEqual(msg_debug.num_messages(),
50-
20, delta=4) # 3rd call == 20
50+
20, delta=10) # 3rd call == 20
5151

5252
# change test message
5353
msg_strobe.to_basic_block()._post(pmt.intern("set_msg"), pmt.intern(new_msg))

gr-blocks/python/blocks/qa_message_strobe.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def test_001_t(self):
4343
0, delta=2) # 1st call, expect 0
4444
time.sleep(1.05) # floor(1050/100) = 10
4545
self.assertAlmostEqual(msg_debug.num_messages(),
46-
10, delta=3) # 2nd call == 10
46+
10, delta=8) # 2nd call == 10
4747
time.sleep(1) # floor(2050/100) = 20
4848
self.assertAlmostEqual(msg_debug.num_messages(),
49-
20, delta=4) # 3rd call == 20
49+
20, delta=10) # 3rd call == 20
5050

5151
# change test message
5252
msg_strobe.to_basic_block()._post(pmt.intern("set_msg"), pmt.intern(new_msg))

0 commit comments

Comments
 (0)