maxmind / GeoIP2-perl

Perl API for MaxMind's GeoIP2 web services and databases
https://metacpan.org/release/GeoIP2/
Other
18 stars 11 forks source link

Failed test 'expected exception with unknown file type' #63

Closed sezal closed 6 years ago

sezal commented 6 years ago

Only one test fails on some Amazon Linux instances, but everything works fine. I believe the test is not stable since the same version of libmaxminddb used on all instances.

t/00-report-prereqs.t ...................... ok
t/MaxMind/DB/Reader-broken-databases.t ..... 1/?
#   Failed test 'expected exception with unknown file type'
#   at t/MaxMind/DB/Reader-broken-databases.t line 84.
#                   'MaxMind::DB::Reader::XS - Error opening database file "/tmp/omD6j0rlvK/garbage": The MaxMind DB file contains invalid metadata at /root/.cpan/build/MaxMind-DB-Reader-XS-1.000004-zaMvR4/blib/lib/MaxMind/DB/Reader/XS.pm line 67.
# '
#     doesn't match '(?^:Error opening database file "\/tmp\/omD6j0rlvK\/garbage": The lookup path does not match the data .+)'
# Looks like you failed 1 test of 5.
t/MaxMind/DB/Reader-broken-databases.t ..... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests
t/MaxMind/DB/Reader-decoder.t .............. ok
t/MaxMind/DB/Reader-no-ipv4-search-tree.t .. ok
t/MaxMind/DB/Reader.t ...................... ok
t/MaxMind/DB/Reader/NoMoose.t .............. ok
t/libmaxminddb-version.t ................... 1/? # libmaxminddb version is 1.3.2
t/libmaxminddb-version.t ................... ok
t/xs-only.t ................................ ok
sezal commented 6 years ago

Re-submitted to right place https://github.com/maxmind/MaxMind-DB-Reader-perl/issues/33