瀏覽代碼

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;