Skip to content

Commit b32ebba

Browse files
committed
PHPC-180: No need to sleep anything, we get a fresh connection in next test
1 parent 70a1849 commit b32ebba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/standalone/connectiontimeoutexception-001.phpt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ConnectionTimeoutException: exceeding sockettimeoutms
66
<?php
77
require_once "tests/utils/basic.inc";
88

9-
$manager = new MongoDB\Driver\Manager(STANDALONE . "/?sockettimeoutms=1004");
9+
$manager = new MongoDB\Driver\Manager(STANDALONE . "/?sockettimeoutms=504");
1010

1111
$cmd = array(
1212
"sleep" => 1,
@@ -19,9 +19,6 @@ throws(function() use ($manager, $command) {
1919
$result = $manager->executeCommand("admin", $command);
2020
}, "MongoDB\Driver\ConnectionTimeoutException");
2121

22-
/* Sleep one second longer then needing to make sure later processes don't get affected */
23-
sleep(3);
24-
2522
?>
2623
===DONE===
2724
<?php exit(0); ?>

0 commit comments

Comments
 (0)