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

Tests randomly fail #27

Open
gmile opened this issue Dec 20, 2024 · 0 comments
Open

Tests randomly fail #27

gmile opened this issue Dec 20, 2024 · 0 comments

Comments

@gmile
Copy link
Contributor

gmile commented Dec 20, 2024

I was just running the suite and noticed this - not sure what's run, but this failure appears to be a sporadic:

  1) property zxcvbn/1 handles given ascii string in unicode mode (ZXCVBNTest)
     test/zxcvbn_test.exs:62
     Failed with generated values (after 68 successful runs):

         * Clause:    str <- string(:ascii, max_length: 10, min_length: 1)
           Generated: "Uid"

         * Clause:    times <- integer(1..20)
           Generated: 1

     Assertion with == failed
     code:  assert Map.get(official_result, "guesses") == Map.get(result, :guesses)
     left:  1001
     right: 865.0000000000001
     stacktrace:
       test/zxcvbn_test.exs:74: anonymous fn/2 in ZXCVBNTest."property zxcvbn/1 handles given ascii string in unicode mode"/1
       (stream_data 1.1.1) lib/stream_data.ex:2367: StreamData.shrink_failure/6
       (stream_data 1.1.1) lib/stream_data.ex:2327: StreamData.check_all/7
       test/zxcvbn_test.exs:63: (test)



  2) property zxcvbn/1 handles given ascii string in ascii mode (ZXCVBNTest)
     test/zxcvbn_test.exs:38
     Failed with generated values (after 68 successful runs):

         * Clause:    str <- string(:ascii, max_length: 10, min_length: 1)
           Generated: "Uid"

         * Clause:    times <- integer(1..20)
           Generated: 1

     Assertion with == failed
     code:  assert Map.get(official_result, "guesses") == Map.get(result, :guesses)
     left:  1001
     right: 865.0000000000001
     stacktrace:
       test/zxcvbn_test.exs:50: anonymous fn/2 in ZXCVBNTest."property zxcvbn/1 handles given ascii string in ascii mode"/1
       (stream_data 1.1.1) lib/stream_data.ex:2367: StreamData.shrink_failure/6
       (stream_data 1.1.1) lib/stream_data.ex:2327: StreamData.check_all/7
       test/zxcvbn_test.exs:39: (test)
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

1 participant