Skip to content

Commit 6217d48

Browse files
committed
Fix update spec test for server-side error
1 parent 6d5263c commit 6217d48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bulk/bulkwrite-update_error-008.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
--TEST--
2-
MongoDB\Driver\BulkWrite::update() hint option requires MongoDB 4.2
2+
MongoDB\Driver\BulkWrite::update() hint option requires MongoDB 4.2 (server-side error)
33
--SKIPIF--
44
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
55
<?php skip_if_not_live(); ?>
66
<?php skip_if_server_version('>=', '4.2'); ?>
7+
<?php skip_if_server_version('<=', '3.6.0'); ?>
78
--FILE--
89
<?php
910
require_once __DIR__ . "/../utils/basic.inc";
@@ -22,5 +23,5 @@ echo throws(function() use ($manager, $bulk) {
2223
<?php exit(0); ?>
2324
--EXPECT--
2425
OK: Got MongoDB\Driver\Exception\BulkWriteException
25-
Bulk write failed due to previous MongoDB\Driver\Exception\RuntimeException: The selected server does not support hint for update
26+
BSON field 'update.updates.hint' is an unknown field.
2627
===DONE===

0 commit comments

Comments
 (0)