massivefermion / blah

fake data generation for gleam
https://hex.pm/packages/blah
Apache License 2.0
14 stars 4 forks source link

Flaky Test #3

Open PascalLeMerrer opened 5 months ago

PascalLeMerrer commented 5 months ago

When running the tests, one will often fail, but not systematically:

gleam test
  Compiling blah
   Compiled in 0.56s
    Running blah_test.main
..F.....................
Failures:

  1) internet_test.uri_test
     Failure: ?assertMatch({ ok , _ }, A)
       expected: = { ok , _ }
            got: {error,nil}
     output: 

Finished in 0.079 seconds
24 tests, 1 failures
(devbox) pascal@air-de-pascal-1 blah % gleam test
   Compiled in 0.03s
    Running blah_test.main
........................
Finished in 0.080 seconds
24 tests, 0 failures
(devbox) pascal@air-de-pascal-1 blah % gleam test
   Compiled in 0.02s
    Running blah_test.main
........................
Finished in 0.078 seconds
24 tests, 0 failures
(devbox) pascal@air-de-pascal-1 blah % gleam test
   Compiled in 0.02s
    Running blah_test.main
..F.....................
Failures:

  1) internet_test.uri_test
     Failure: ?assertMatch({ ok , _ }, A)
       expected: = { ok , _ }
            got: {error,nil}
     output: 

Finished in 0.079 seconds
24 tests, 1 failures
massivefermion commented 5 months ago

I ran gleam test many times but I can't reproduce this! All the tests pass every time.