Skip to content

Conversation

@shsms
Copy link
Contributor

@shsms shsms commented Jul 25, 2024

This makes the tests less flaky.

Closes #901

This eliminates flakiness coming from running tests in slow or
software-emulated VMs.

Signed-off-by: Sahas Subramanian <[email protected]>
@shsms shsms requested a review from a team as a code owner July 25, 2024 10:39
@shsms shsms requested a review from Marenz July 25, 2024 10:39
@github-actions github-actions bot added the part:tests Affects the unit, integration and performance (benchmarks) tests label Jul 25, 2024
@shsms shsms added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jul 25, 2024
@shsms shsms self-assigned this Jul 25, 2024
The PowerDistributor increases EV power only after a certain interval
has passed.  This change allows us to mock the passage of time, rather
than waiting for the clock to move in real time.

Signed-off-by: Sahas Subramanian <[email protected]>
Copy link
Contributor

@Marenz Marenz left a comment

Choose a reason for hiding this comment

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

Time passes quickly

@shsms shsms added this pull request to the merge queue Jul 25, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 58ba3e6 Jul 25, 2024
@shsms shsms deleted the mock-time branch July 25, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Solipsism and time_machine in power distributor tests

2 participants