Explorar el Código

Unregister PSGI hook to let final tests run normally

Daniel Gempesaw hace 11 años
padre
commit
ab580eb7c6
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      t/01-driver.t

+ 2 - 0
t/01-driver.t

@@ -5,6 +5,7 @@ use JSON;
 use Net::Ping;
 use HTTP::Headers;
 use Test::More;
+use LWP::Protocol::PSGI;
 use Test::LWP::UserAgent;
 use Selenium::Remote::Driver;
 
@@ -401,6 +402,7 @@ QUIT: {
 }
 
 NO_SERVER_ERROR_MESSAGE: {
+    LWP::Protocol::PSGI->unregister;
     my $unused_port = do {
         my $l = IO::Socket::INET->new(
             Listen    => 5,