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

Improve checks for actual duration in sleep specs #1213

Closed
wants to merge 1 commit into from

Conversation

herwinw
Copy link
Member

@herwinw herwinw commented Nov 6, 2024

Use should < instead of trying to match the boolean itself. This way, the output on failures show the actual duration instead of just a true/false error.

Example error message with this change:

Expected 0.15368436999779078 < 0.03

Just happened to spot this in #1212. I'm leaving this as draft for now, to prevent it from clashing with those changes.

Use `should <` instead of trying to match the boolean itself. This way,
the output on failures show the actual duration instead of just a
true/false error.

Example error message with this change:

    Expected 0.15368436999779078 < 0.03
@herwinw herwinw self-assigned this Nov 6, 2024
@eregon
Copy link
Member

eregon commented Nov 7, 2024

Let's close, it doesn't even pass reliably on Linux and the spec needs to be reworked

@eregon eregon closed this Nov 7, 2024
@herwinw herwinw deleted the kernel_sleep_should branch November 7, 2024 13:00
@headius
Copy link
Contributor

headius commented Nov 7, 2024

Weirdly enough I did not think this worked. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants