Skip Menu |

This queue is for tickets about the CPAN-Mini-Inject CPAN distribution.

Report information
The Basics
Id: 27354
Status: resolved
Priority: 0/
Queue: CPAN-Mini-Inject

People
Owner: andy [...] hexten.net
Requestors: jonathan_dandries [...] wiwd.uscourts.gov
Cc:
AdminCc:

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



Subject: Port 8080
The testing framework for CPAN-Mini-Inject-0.18 assumes you have port 8080 open. If you are running tomcat (as I am), these tests fail. It would be great if you would try a less well-known port so things would work more by default (I used 8088 just fine, but probably 8089 is a better choice to be safe). Here is the stderr output from "make test" on my Linux 2.6.5-7.283-smp with perl, v5.8.3 built for i586-linux-thread-multi. # Testing CPAN::Mini::Inject 0.18 bind: Address already in use at /usr/lib/perl5/site_perl/5.8.3/HTTP/Server/Simple.pm line 582, <DATA> line 16. Unable to connect to any remote site at t/testremote.t line 23 # Looks like you planned 3 tests but only ran 1. bind: Address already in use at /usr/lib/perl5/site_perl/5.8.3/HTTP/Server/Simple.pm line 582, <DATA> line 16. unable to contact the remote mirror at t/update_mirror.t line 31 # Looks like you planned 8 tests but only ran 1. Failed 2/13 test programs. 9/48 subtests failed. make: *** [test_dynamic] Error 255 Here is the diff after I changed the port to 8088. All tests passed after these changes: Common subdirectories: CPAN-Mini-Inject-0.18-JGXmo3/t/html and CPAN-Mini-Inje ct-0.18-3oJYIF/t/html Common subdirectories: CPAN-Mini-Inject-0.18-JGXmo3/t/lib and CPAN-Mini-Injec t-0.18-3oJYIF/t/lib Common subdirectories: CPAN-Mini-Inject-0.18-JGXmo3/t/local and CPAN-Mini-Inj ect-0.18-3oJYIF/t/local Only in CPAN-Mini-Inject-0.18-JGXmo3/t/: mirror diff CPAN-Mini-Inject-0.18-JGXmo3/t/parsecfg.t CPAN-Mini-Inject-0.18-3oJYIF/t /parsecfg.t 9c9 < is($mcpi->{config}{remote},'http://localhost:8080'); --- Show quoted text
> is($mcpi->{config}{remote},'http://localhost:8088');
15c15 < is($mcpi->{config}{remote},'http://localhost:8080'); --- Show quoted text
> is($mcpi->{config}{remote},'http://localhost:8088');
Common subdirectories: CPAN-Mini-Inject-0.18-JGXmo3/t/read and CPAN-Mini-Inje ct-0.18-3oJYIF/t/read diff CPAN-Mini-Inject-0.18-JGXmo3/t/testremote.t CPAN-Mini-Inject-0.18-3oJYIF /t/testremote.t 13c13 < my $server=CPANServer->new; --- Show quoted text
> my $server=CPANServer->new(8088);
24c24 < is($mcpi->{site},'http://localhost:8080/','Correct remote URL'); --- Show quoted text
> is($mcpi->{site},'http://localhost:8088/','Correct remote URL');
30c30 < is($mcpi->{site},'http://localhost:8080/','Selects correct remote URL'); --- Show quoted text
> is($mcpi->{site},'http://localhost:8088/','Selects correct remote
URL'); diff CPAN-Mini-Inject-0.18-JGXmo3/t/update_mirror.t CPAN-Mini-Inject-0.18-3oJ YIF/t/update_mirror.t 20c20 < my $server=CPANServer->new; --- Show quoted text
> my $server=CPANServer->new(8088);
32c32 < remote => 'http://localhost:8080', --- Show quoted text
> remote => 'http://localhost:8088',
diff CPAN-Mini-Inject-0.18-JGXmo3/t/.mcpani/config CPAN-Mini-Inject-0.18-3oJY IF/t/.mcpani/config 2c2 < remote : http://localhost:8080 --- Show quoted text
diff CPAN-Mini-Inject-0.18-JGXmo3/t/.mcpani/config_badremote CPAN-Mini-Inject -0.18-3oJYIF/t/.mcpani/config_badremote 2c2 < remote : http://blahblah http://localhost:8080 --- Show quoted text
Hi - this will be fixed in the next release. Thanks for the report.