Преглед на файлове

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 преди 11 години
родител
ревизия
0d116cb2b9
променени са 1 файла, в които са добавени 0 реда и са изтрити 17 реда
  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;