Skip to content

Occasional test failures of test_hw_tx_timer_wrap[socket] using random timings in tests #186

@humphrey-xmos

Description

@humphrey-xmos

Occational flaky failures of ...

FAILED test_hw_tx_timer_wrap.py::test_hw_tx_timer_wrap[socket] - AssertionError: DUT inter packet delay later than expected. Delay between received packets 40.0382, Expected delay 39.0000

Rerunning job often passes...mmm.

Firslty, AssertionError: DUT inter packet delay later than expected. Delay between received packets 28.0474, Expected delay 27.0000, the test is checking that the response it received within 1 second of the expected time. Failures seem to be because the time is taking just over 1 second.


There is a question about whether random timing should be used in PR testing, but only nightly and weekend tests instead.

This test introduces a large delay (rand.randint(20, 40) seconds) between requesting the device to transmit a

This is to keep the PR testing predictable and repeatable.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions