Skip to content

Conversation

@Deezzir
Copy link
Contributor

@Deezzir Deezzir commented Mar 24, 2025

The PR adds a safeguard for each IPMISelCollector unit test. It waits until the get_sel_entries function is called once and then proceeds. This should prevent a race condition that @jneo8 discovered and generally make the test more robust.

Closes: #93

@Deezzir Deezzir force-pushed the SOLENG-1142-unit-test-not-success-every-time branch 2 times, most recently from 7731956 to 96dac85 Compare March 24, 2025 21:06
@Deezzir Deezzir force-pushed the SOLENG-1142-unit-test-not-success-every-time branch from 96dac85 to 1d944a1 Compare March 24, 2025 21:08
@Deezzir Deezzir marked this pull request as ready for review March 25, 2025 22:47
@Deezzir Deezzir requested a review from a team as a code owner March 25, 2025 22:47
@Deezzir Deezzir changed the title reproduce race-condition Add safeguard to prevent race condition Mar 25, 2025
jneo8
jneo8 previously approved these changes Mar 26, 2025
@Deezzir Deezzir merged commit d31f004 into canonical:main Mar 26, 2025
7 checks passed
@Deezzir Deezzir deleted the SOLENG-1142-unit-test-not-success-every-time branch March 26, 2025 17:41
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.

unit test not success every time

3 participants