Skip Menu |

This queue is for tickets about the Test-WWW-Simple CPAN distribution.

Report information
The Basics
Id: 86312
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Test-WWW-Simple

People
Owner: mcmahon [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.34
Fixed in: (no value)



Subject: t/15ss_cache.t fails and sometimes hangs on Linux
perl 5.16.2 with ithreads c@deb1:~/.cpan/build/Test-WWW-Simple-0.34-GsMR2v$ perl -Mblib t/15ss_cache.t 1..1 # Waiting for test webserver to spin up # starting Mojolicious server Server available at http://127.0.0.1:3000. [Fri Jun 21 23:51:14 2013] [error] Can't locate object method "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line 15. # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal Server Error' # at blib/lib/Test/WWW/Simple.pm line 99. [Fri Jun 21 23:51:14 2013] [error] Can't locate object method "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line 15. # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal Server Error' # at blib/lib/Test/WWW/Simple.pm line 99. # Failed test 'cached from last get [http://localhost:3000/] [/bbbbb/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} <title>Server "... # length: 20909 # doesn't match '(?^:bbbbb)' # Failed test 'still cached [http://localhost:3000/] [/bbbbb/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} <title>Server "... # length: 20909 # doesn't match '(?^:bbbbb)' [Fri Jun 21 23:51:15 2013] [error] Can't locate object method "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line 15. # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal Server Error' # at blib/lib/Test/WWW/Simple.pm line 99. # Failed test 'return to last cached value [http://localhost:3000/] [/ccccc/ should match]' # at blib/lib/Test/WWW/Simple.pm line 99. # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} <title>Server "... # length: 21058 # doesn't match '(?^:ccccc)' [Fri Jun 21 23:51:16 2013] [error] Can't locate object method "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line 15. # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal Server Error' # at blib/lib/Test/WWW/Simple.pm line 99. # Looks like you failed 7 tests of 9. not ok 1 - working output as expected # Failed test 'working output as expected' # at t/15ss_cache.t line 41. # Structures begin differing at: # $got->[1] = 'not ok 1 - Fetch of http://localhost:3000/ failed: 500 Internal Server Error # ' # $expected->[1] = 'ok 1 - initial value OK [http://localhost:3000/] [/aaaaa/ should match] # ' # Shutting down test webserver [Fri Jun 21 23:51:16 2013] [error] Can't locate object method "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line 17. # Looks like you failed 1 test of 1. -- Alexandr Ciornii, http://chorny.net
Subject: Re: [rt.cpan.org #86312] t/15ss_cache.t fails and sometimes hangs on Linux
Date: Fri, 21 Jun 2013 17:44:47 -0700
To: bug-Test-WWW-Simple [...] rt.cpan.org
From: Joe McMahon <joe.mcmahon [...] gmail.com>
Thanks - I'll take a look at this. I suspect a Mojolicious change... On Fri, Jun 21, 2013 at 1:55 PM, Alexandr Ciornii via RT < bug-Test-WWW-Simple@rt.cpan.org> wrote: Show quoted text
> Fri Jun 21 16:55:28 2013: Request 86312 was acted upon. > Transaction: Ticket created by CHORNY > Queue: Test-WWW-Simple > Subject: t/15ss_cache.t fails and sometimes hangs on Linux > Broken in: 0.34 > Severity: Important > Owner: Nobody > Requestors: CHORNY@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=86312 > > > > perl 5.16.2 with ithreads > > c@deb1:~/.cpan/build/Test-WWW-Simple-0.34-GsMR2v$ perl -Mblib > t/15ss_cache.t > 1..1 > # Waiting for test webserver to spin up > # starting Mojolicious server > Server available at http://127.0.0.1:3000. > [Fri Jun 21 23:51:14 2013] [error] Can't locate object method > "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line > 15. > > # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal > Server Error' > # at blib/lib/Test/WWW/Simple.pm line 99. > [Fri Jun 21 23:51:14 2013] [error] Can't locate object method > "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line > 15. > > # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal > Server Error' > # at blib/lib/Test/WWW/Simple.pm line 99. > # Failed test 'cached from last get [http://localhost:3000/] [/bbbbb/ > should match]' > # at blib/lib/Test/WWW/Simple.pm line 99. > # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} > <title>Server "... > # length: 20909 > # doesn't match '(?^:bbbbb)' > # Failed test 'still cached [http://localhost:3000/] [/bbbbb/ should > match]' > # at blib/lib/Test/WWW/Simple.pm line 99. > # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} > <title>Server "... > # length: 20909 > # doesn't match '(?^:bbbbb)' > [Fri Jun 21 23:51:15 2013] [error] Can't locate object method > "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line > 15. > > # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal > Server Error' > # at blib/lib/Test/WWW/Simple.pm line 99. > # Failed test 'return to last cached value [http://localhost:3000/] > [/ccccc/ should match]' > # at blib/lib/Test/WWW/Simple.pm line 99. > # got: "<!DOCTYPE html>\x{0a}<html>\x{0a} <head>\x{0a} > <title>Server "... > # length: 21058 > # doesn't match '(?^:ccccc)' > [Fri Jun 21 23:51:16 2013] [error] Can't locate object method > "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line > 15. > > # Failed test 'Fetch of http://localhost:3000/ failed: 500 Internal > Server Error' > # at blib/lib/Test/WWW/Simple.pm line 99. > # Looks like you failed 7 tests of 9. > not ok 1 - working output as expected > # Failed test 'working output as expected' > # at t/15ss_cache.t line 41. > # Structures begin differing at: > # $got->[1] = 'not ok 1 - Fetch of http://localhost:3000/failed: 500 Internal Server Error > # ' > # $expected->[1] = 'ok 1 - initial value OK [http://localhost:3000/] > [/aaaaa/ should match] > # ' > # Shutting down test webserver > [Fri Jun 21 23:51:16 2013] [error] Can't locate object method > "render_text" via package "Mojolicious::Controller" at t/15ss_cache.t line > 17. > > # Looks like you failed 1 test of 1. > > > -- > Alexandr Ciornii, http://chorny.net > >
Fixed in 0.35 - Mojolicious has indeed changed its API. Test updated to match