Test 05-simple.t fails due to it attempting to connect to INADDR_ANY
(0.0.0.0) instead of 127.0.0.1. INADDR_ANY is for listening sockets,
not for connects[0], replacing 0.0.0.0 with 127.0.0.1 makes the test pass.
Failing output:
t/05-simple....
Failed test 'Got some content back'
at t/05-simple.t line 34.
Use of uninitialized value $this in pattern match (m//) at t/05-simple.t
line 35.
Failed test 'Content matches expected result'
at t/05-simple.t line 35.
undef
doesn't match '(?-xism:Congratulations, your Mojo is working!)'
Looks like you failed 2 tests of 12.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 9-10
Failed 2/12 tests, 83.33% okay
Failed Test Stat Wstat Total Fail List of Failed
t/05-simple.t 2 512 12 2 9-10
Failed 1/1 test scripts. 2/12 subtests failed.
Files=1, Tests=12, 2 wallclock secs ( 0.53 cusr + 0.07 csys = 0.60 CPU)
Failed 1/1 test programs. 2/12 subtests failed.
[0] - according to RFCs 1700 and 3330
--- t/05-simple.t.orig Sat Jun 20 05:28:04 2009
+++ t/05-simple.t Sat Jun 20 05:28:38 2009
@@ -28,7 +28,7 @@ cmp_deeply($server->banner_called, [ '0.0.0.0', $new_p
# GET the server
my $timer; $timer = AnyEvent->timer( after => .5, cb => sub {
- http_get("http://0.0.0.0:$new_port/", sub {
+ http_get("http://127.0.0.1:$new_port/", sub {
my ($content) = @_;
ok($content, 'Got some content back');
Correct.
I'm currently rewriting AnyEvent::Mojo to be compatible with the latest version, and I'll fix this then.