sergot / http-useragent

Web user agent class for Perl 6.
MIT License
36 stars 39 forks source link

./t/080-ua.t fails with JSON::Fast v0.17 #239

Closed pheix closed 2 years ago

pheix commented 2 years ago

./t/080-ua.t fails with:

[kostas@webtech-msi http-useragent]$ NETWORK_TESTING=1 raku -Ilib ./t/080-ua.t 
ok 1 - new 1/3
ok 2 - new 2/3
ok 3 - new 3/3
ok 4 - useragent 1/1
not ok 5 - get from 'filip.sergot.pl/' # TODO possibly flaky host
# Failed test 'get from 'filip.sergot.pl/''
# at ./t/080-ua.t line 25
# Failed to resolve host name 'filip.sergot.pl' with family 0.
# Error: Name or service not known
ok 6 - Lived through gb2312 encoding # TODO possibly flaky host
ok 7 - # SKIP Site changed. Need new site to cover this problem See  \#208 # TODO possibly flaky host
# Subtest: post
Trying to import from 'JSON::Fast', but the following symbols are missing: &from-json
  in block  at ./t/080-ua.t line 47
  in block <unit> at ./t/080-ua.t line 19

It works fine with JSON::Fast v0.15, but fails on v0.17:

[kostas@webtech-msi http-useragent]$ raku --version
Welcome to Rakudo(tm) v2021.04.
Implementing the Raku(tm) programming language v6.d.
Built on MoarVM version 2021.04.
[kostas@webtech-msi http-useragent]$ zef info JSON::Fast
- Info for: JSON::Fast
- Identity: JSON::Fast:ver<0.17>:auth<cpan:TIMOTIMO>
- Recommended By: Zef::Repository::Ecosystems<cpan>
- Installed: Yes
Description:     A naive, fast json parser and serializer; drop-in replacement for JSON::Tiny
License:     Artistic-2.0
Source-url:  http://www.cpan.org/authors/id/T/TI/TIMOTIMO/Perl6/JSON-Fast-0.17.tar.gz
Provides: 1 modules
Support:
#   source: git://github.com/timo/json_fast.git
Depends: 1 items
sergot commented 2 years ago

@pheix thanks for reporting, it is fixed now