소스 검색

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;