Skip to content

Fix MockedCANCoder test to be reliable. - #83

Merged
brettle merged 2 commits into
2024-betafrom
fix-MockedCANCoderTest-timeout
Apr 30, 2024
Merged

Fix MockedCANCoder test to be reliable.#83
brettle merged 2 commits into
2024-betafrom
fix-MockedCANCoderTest-timeout

Conversation

@brettle

@brettle brettle commented Apr 29, 2024

Copy link
Copy Markdown
Member

Support running the tests repeatedly. That includes making sure that the CANcoder is closed after each test.
Wait for the desired value to be set instead of just waiting for an update.
Shorten the timeout to 2x the default robot period.

This is an alternative to PR #82.

Support running the tests repeatedly. That includes making sure that the CANcoder is closed after each test.
Wait for the desired value to be set instead of just waiting for an update.
Shorten the timeout to 2x the default robot period.

@CoolSpy3 CoolSpy3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️ Verified with NUM_REPS = 10000

It didn't look like InterruptedException was thrown anywhere, so I took out the throws clause. Feel free to add it back if that was in error.

@brettle
brettle merged commit 69297b3 into 2024-beta Apr 30, 2024
@brettle
brettle deleted the fix-MockedCANCoderTest-timeout branch April 30, 2024 13:22
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