jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
56 stars 58 forks source link

Possible hash randomization problem in test suite #101

Closed eserte closed 6 years ago

eserte commented 6 years ago

With JSON-Validator-2.04 I see the following test failure, randomly, only for perls >= 5.18 (so it's possible a problem with hash randomization):

#   Failed test 'get /undef/undef/y'
#   at t/get.t line 12.
#     Structures begin differing at:
#          $got->[0][0] = 'foo'
#     $expected->[0][0] = 'first'

#   Failed test 'get /undef/undef/y flatten'
#   at t/get.t line 14.
#     Structures begin differing at:
#          $got->[0] = 'foo'
#     $expected->[0] = 'first'
# Looks like you failed 2 tests of 6.
t/get.t ................................ 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/6 subtests 
jhthorsen commented 6 years ago

Thanks! 👍