Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants