mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-27 10:36:11 +02:00
PHPC-180: No need to sleep anything, we get a fresh connection in next test
This commit is contained in:
@@ -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); ?>
|
||||
|
||||
Reference in New Issue
Block a user