Explorar o código

Remove redundant error case test from 01-driver.t

This error case, when the selenium server specified in the initial
arguments cannot be reached at all, is also covered in error.t, along
with other common start up error cases.
Daniel Gempesaw %!s(int64=11) %!d(string=hai) anos
pai
achega
0d116cb2b9
Modificáronse 1 ficheiros con 0 adicións e 17 borrados
  1. 0 17
      t/01-driver.t

+ 0 - 17
t/01-driver.t

@@ -447,21 +447,4 @@ QUIT: {
     ok((not defined $driver->{'session_id'}), 'Killed the remote session');
 }
 
-NO_SERVER_ERROR_MESSAGE: {
-    my $unused_port = do {
-        my $l = IO::Socket::INET->new(
-            Listen    => 5,
-            LocalHost => '127.0.0.1',
-            LocalPort => 0,
-            Proto     => 'tcp',
-            ReuseAddr => 1,
-        ) or die $!;
-        $l->sockport;
-    };
-    eval {
-        my $sel = Selenium::Remote::Driver->new(port => $unused_port);
-    };
-    unlike($@, qr/Use of uninitialized value/, "Error message for no server at host/port combination is helpful");
-}
-
 done_testing;