-
Notifications
You must be signed in to change notification settings - Fork 10
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
Clock resolution test failures on WSL with Nix #31
Comments
I see the same error when building on
|
|
I am getting a similar but opposite error on
|
@matoro same question applies to you:
|
I have the same result as matoro when running tests on
I also tried running tests on https://github.com/haskell/time, both version
|
is ok, getting smaller resolution than expected (i.e. clock is more precise that it says). Patch to fix test-suite (from (As I don't have a system where it fails, it's harder for me to get it right). In original reports
getting larger resolutions that what is actually reported is bad :( but they should test with |
The upstream version of time was incorrect in newer versions until haskell/time@6516a35. Because the compat implementation was correct and the upstream version of time is now logically identical, simply replace both versions with the current upstream time implementation. See haskellari#31 for details on which platforms the distinction matters. Does NOT close that issue though, because the original issue is for platforms on which the actual resolution is less precise than the expected, and this will only fix platforms on which the actual resolution is more precise.
The upstream version of time was incorrect in newer versions until haskell/time@6516a35. Because the compat implementation was correct and the upstream version of time is now logically identical, simply replace both versions with the current upstream time implementation. See haskellari#31 for details on which platforms the distinction matters. Does NOT close that issue though, because the original issue is for platforms on which the actual resolution is less precise than the expected, and this will only fix platforms on which the actual resolution is more precise.
@NorfairKing same question as to all others. Have you tried So if it fails, it's very likely it's an upstream |
I'm getting these clock resolution test failures when installing
time-compat
on my Windows machine with WSL and Nix:I got these while attempting to install
nix-thunk
on WSL, see: obsidiansystems/nix-thunk#23The failure is coming from
assertEqual "resolution" res $ gcdAll times
here:time-compat/test/main/Test/Clock/Resolution.hs
Line 57 in 3fe7a16
The text was updated successfully, but these errors were encountered: