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

Flakiness in SchedulerSpec #3974

Open
djspiewak opened this issue Jan 27, 2024 · 1 comment
Open

Flakiness in SchedulerSpec #3974

djspiewak opened this issue Jan 27, 2024 · 1 comment

Comments

@djspiewak
Copy link
Member

[error]   x correctly calculate real time
[error]    16 is greater than 10 (/home/runner/work/cats-effect/cats-effect/tests/js/target/scala-3.2.2/cats-effect-tests-test-fastopt/file:/Users/etorreborre/projects/specs2/specs2-cross/matcher/shared/src/main/scala/org/specs2/matcher/Expectable.scala:50)

Seen in CI.

@armanbilge
Copy link
Member

To give some context: we have to do some shenanigans to get micro-second precision time on JS and that test verifies that we didn't screw up the math and it works as we expect. Maybe need to make it less sensitive.

browsers.orElse(nodeJS).map[js.Function0[Long]] { performance => () =>
((performance.timeOrigin + performance.now()) * 1000).toLong
} getOrElse { () => System.currentTimeMillis() * 1000 }

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

No branches or pull requests

2 participants