Skip to content

Clock resolution test failures on WSL with Nix #31

@AlexKnauth

Description

@AlexKnauth

I'm getting these clock resolution test failures when installing time-compat on my Windows machine with WSL and Nix:

    resolution
      getCurrentTime:                                                             FAIL (0.14s)
        test/main/Test/Clock/Resolution.hs:57:
        resolution
        expected: 0.000000001s
         but got: 0.0000001s
      taiClock:                                                                   FAIL (0.15s)
        test/main/Test/Clock/Resolution.hs:57:
        resolution
        expected: 0.000000001s
         but got: 0.0000001s
2 out of 859 tests failed (0.89s)
Test suite main: FAIL
Test suite logged to: dist/test/time-compat-1.9.5-main.log
Test suite instances: RUNNING...
Test suite instances: PASS
Test suite logged to: dist/test/time-compat-1.9.5-instances.log
1 of 2 test suites (1 of 2 test cases) passed.

I got these while attempting to install nix-thunk on WSL, see: obsidiansystems/nix-thunk#23

The failure is coming from assertEqual "resolution" res $ gcdAll times here:

assertEqual "resolution" res $ gcdAll times

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions