Skip to content

Fix an intermittent test failure#284

Merged
rwb27 merged 2 commits intomainfrom
fix-tests
Mar 4, 2026
Merged

Fix an intermittent test failure#284
rwb27 merged 2 commits intomainfrom
fix-tests

Conversation

@rwb27
Copy link
Collaborator

@rwb27 rwb27 commented Mar 4, 2026

The test test_thread_with_invocation_id_cancellation_propagates was failing because I'd set too long a poll interval. This commit drops the poll interval, and it appears to work OK.

I have realised we could probably do with a timeout as well as a poll interval: I suspect my intention was to set a timeout of 1 second, not a poll interval of 1 second! The argument was clearly named though - so I don't think we need to change the function.

This is a trivial fix, and the randomly failing tests were getting really annoying!

@rwb27 rwb27 requested a review from julianstirling March 4, 2026 22:17
@barecheck
Copy link

barecheck bot commented Mar 4, 2026

Barecheck - Code coverage report

Total: 96.31%

Your code coverage diff: 0.00% ▴

✅ All code changes are covered

rwb27 added 2 commits March 4, 2026 23:36
The test `test_thread_with_invocation_id_cancellation_propagates` was failing because I'd set too long a poll interval. This commit drops the poll interval, and it appears to work OK.

I have realised we could probably do with a timeout as well as a poll interval: I suspect my intention was to set a timeout of 1 second, not a poll interval of 1 second! The argument was clearly named though - so I don't think we need to change the function.
This was causing some warnings in the test suite.
@rwb27 rwb27 merged commit 115cbc9 into main Mar 4, 2026
15 checks passed
@rwb27 rwb27 deleted the fix-tests branch March 4, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants