PHPC-180: No need to sleep anything, we get a fresh connection in next test

This commit is contained in:
Hannes Magnusson
2015-03-16 22:37:16 -07:00
parent 70a184961f
commit b32ebba8a2
@@ -6,7 +6,7 @@ ConnectionTimeoutException: exceeding sockettimeoutms
<?php
require_once "tests/utils/basic.inc";
$manager = new MongoDB\Driver\Manager(STANDALONE . "/?sockettimeoutms=1004");
$manager = new MongoDB\Driver\Manager(STANDALONE . "/?sockettimeoutms=504");
$cmd = array(
"sleep" => 1,
@@ -19,9 +19,6 @@ throws(function() use ($manager, $command) {
$result = $manager->executeCommand("admin", $command);
}, "MongoDB\Driver\ConnectionTimeoutException");
/* Sleep one second longer then needing to make sure later processes don't get affected */
sleep(3);
?>
===DONE===
<?php exit(0); ?>