Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky tests on live bidding #237

Merged
merged 1 commit into from
Oct 15, 2021
Merged

Fix flaky tests on live bidding #237

merged 1 commit into from
Oct 15, 2021

Conversation

TurpIF
Copy link
Contributor

@TurpIF TurpIF commented Oct 12, 2021

No description provided.

Those tests were observed to be very flaky. Indeed, it used a real clock
to simulate the live bidding time budget being expired or respected.
This involves 2 executors (one async and one scheduled) which add a lot
of imprecision and difficulties when mocking.

To stabilize the tests, instead of mocking the time budget, the
scheduling is simply mocked to directly call or never call the listener
then.
@TurpIF TurpIF requested a review from a team as a code owner October 12, 2021 08:56
@sonarcloud
Copy link

sonarcloud bot commented Oct 12, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@leonardlabat leonardlabat left a comment

Choose a reason for hiding this comment

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

🤞

@TurpIF TurpIF merged commit c194060 into main Oct 15, 2021
@TurpIF TurpIF deleted the fix-live-bidding-test branch October 15, 2021 08:10
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.

None yet

2 participants