Skip to content

Tests randomly fail #27

@gmile

Description

@gmile

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions