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

Test suite started to fail (withJSON::XS 4.0?) #4

Open
eserte opened this issue Dec 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@eserte
Copy link

commented Dec 21, 2018

On my smokers I see the following test failures:

#   Failed test 'Invalid object sent for serialization returns undef'
#   at t/core.t line 54.
#          got: '"asdf"'
#     expected: undef

#   Failed test 'Bad encode sets proper errstr'
#   at t/core.t line 55.
#          got: ''
#     expected: 'hash- or arrayref expected (not a simple scalar, use allow_nonref to allow this)'
# Looks like you failed 2 tests of 24.
t/core.t ...... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/24 subtests 

#   Failed test 'Scalar context for /put_invalid_json bails before request'
#   at t/requests.t line 17.
#     Structures begin differing at:
#          $got->{code} = 'success'
#     $expected->{code} = Does not exist

#   Failed test 'List context HTTP Code for /put_invalid_json bails before request should return 500'
#   at t/requests.t line 19.
#          got: '200'
#     expected: '500'

#   Failed test 'List context response for /put_invalid_json bails before request'
#   at t/requests.t line 20.
#     Structures begin differing at:
#          $got->{code} = 'success'
#     $expected->{code} = Does not exist
# Looks like you failed 3 tests of 35.
t/requests.t .. 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/35 subtests 

This seems to happen if the newest version of JSON::XS (4.0) is installed.

@RoyceTheBiker

This comment has been minimized.

Copy link

commented Jul 3, 2019

I am also getting this error.

I cannot confirm that it is related to JSON::XS but I have version 4.02 installed.

@RoyceTheBiker

This comment has been minimized.

Copy link

commented Jul 3, 2019

My JSON::XS 4.02 came in as a CPAN dependency, possibly from trying to install JSON::API via CPAN as I could not find a package for it.

I removed the JSON::XS 4.02 and installed the vendor package. Now I have version 3.01 and the CPAN install for JSON::API works.

Linux Mint 18.2 Sonya based on Debian Stretch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.