Browse Source

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 năm trước cách đây
mục cha
commit
0d116cb2b9
1 tập tin đã thay đổi với 0 bổ sung17 xóa
  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;