Skip to content

Commit e685a85

Browse files
committed
Harden test expectation around primary checks
1 parent 45948d9 commit e685a85

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/server/server-executeBulkWrite-004.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ foreach ($writeConcerns as $wc) {
3030
<?php exit(0); ?>
3131
--EXPECTF--
3232
OK: Got MongoDB\Driver\Exception\RuntimeException
33-
not %s
33+
not %r(primary|master)%r
3434
OK: Got MongoDB\Driver\Exception\RuntimeException
35-
not %s
35+
not %r(primary|master)%r
3636
OK: Got MongoDB\Driver\Exception\RuntimeException
37-
not %s
37+
not %r(primary|master)%r
3838
===DONE===

tests/server/server-executeBulkWrite-007.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ foreach ($writeConcerns as $wc) {
3434
<?php exit(0); ?>
3535
--EXPECTF--
3636
OK: Got MongoDB\Driver\Exception\RuntimeException
37-
not %s
37+
not %r(primary|master)%r
3838
OK: Got MongoDB\Driver\Exception\RuntimeException
39-
not %s
39+
not %r(primary|master)%r
4040
OK: Got MongoDB\Driver\Exception\RuntimeException
41-
not %s
41+
not %r(primary|master)%r
4242
===DONE===

0 commit comments

Comments
 (0)