Skip to content

Commit 042c56b

Browse files
committed
Do not re-execute BulkWrite in WriteResult::getServer() test
bulkwrite_error-002.phpt already covers this case.
1 parent 49ee50d commit 042c56b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

tests/replicaset/writeresult-getserver-002.phpt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ foreach($result as $document) {
4747
$cmd = new MongoDB\Driver\Command(array("drop" => "examples"));
4848
$server3->executeCommand("local", $cmd);
4949

50-
throws(function() use ($server3, $bulk) {
51-
$result = $server3->executeBulkWrite(NS, $bulk);
52-
}, "MongoDB\\Driver\\Exception\\RuntimeException");
53-
5450
?>
5551
===DONE===
5652
<?php exit(0); ?>
@@ -93,5 +89,4 @@ object(stdClass)#%d (2) {
9389
["example"]=>
9490
string(8) "document"
9591
}
96-
OK: Got MongoDB\Driver\Exception\RuntimeException
9792
===DONE===

0 commit comments

Comments
 (0)