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

Own testsuite: race condition for test withResource #39

Open
andreasabel opened this issue Oct 20, 2023 · 0 comments
Open

Own testsuite: race condition for test withResource #39

andreasabel opened this issue Oct 20, 2023 · 0 comments
Labels
console Regarding printing to console (colors, races, ...) testsuite Concerning tasty-silver's own test suite

Comments

@andreasabel
Copy link
Collaborator

Once in a while, you can see withResouce listed in the test report:

$ cabal test
Build profile: -w ghc-9.8.1 -O1
...
Building test suite 'test' for tasty-silver-3.3.1.2...
...
Test suite test: RUNNING...
tests
  showDiff:        showDiff-internal: FAIL (0.00s)
                   Result did not match golden value.
                   Diff between actual and golden value:
========================================
[-golden-]{+actual+} value
========================================

1 out of 1 tests failed (0.04s)
OK (0.05s)
tests
  findByExtension: OK (0.01s)
tests
  withResource:    OK (0.00s)
tests
  Filter.checkRF
    empty1a:       OK (0.00s)
  Filter.checkRF
    empty1b:       OK (0.00s)
  Filter.checkRF
    empty2a:       OK (0.00s)
  Filter.checkRF
    empty2b:       OK (0.00s)

All 7 tests passed (0.06s)

But usually, there is at most a misplaced OK or even nothing.

$ cabal test
...
tests
  showDiff:        showDiff-internal: FAIL (0.00s)
                   Result did not match golden value.
                   Diff between actual and golden value:
========================================
[-golden-]{+actual+} value
========================================

1 out of 1 tests failed (0.04s)
OK (0.04s)
tests
  findByExtension: OKOK (0.00s)
tests
  Filter.checkRF
    empty1a:       OK (0.00s)
  Filter.checkRF
    empty1b:       OK (0.00s)
  Filter.checkRF
    empty2a:       OK (0.00s)
  Filter.checkRF
    empty2b:       OK (0.00s)

All 7 tests passed (0.05s)
...

See

@andreasabel andreasabel added testsuite Concerning tasty-silver's own test suite console Regarding printing to console (colors, races, ...) labels Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Regarding printing to console (colors, races, ...) testsuite Concerning tasty-silver's own test suite
Projects
None yet
Development

No branches or pull requests

1 participant