Skip to content

Test suite may fail (hash randomization?) #3

@eserte

Description

@eserte

The CPAN Testers Matrix shows mixed pass/fail results for perl >= 5.18: http://fast-matrix.cpantesters.org/?dist=Thrift-Parser%200.06
Together with such a failure it looks like a hash randomization problem:

#   Failed test 'JSONProtocol generated the expected output'
#   at t/200_jsonprotocol.t line 45.
#          got: '[1,"add",1,1,{"2":{"i32":32},"1":{"i32":15}}]'
#     expected: '[1,"add",1,1,{"1":{"i32":15},"2":{"i32":32}}]'
# Looks like you failed 1 test of 1.
t/200_jsonprotocol.t ....... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

I did not look into the code, but if JSON::XS is used, then the canonical() method may help.

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