Skip to content

Commit acc06c1

Browse files
committed
Update expected error message for server selection failures
This message was changed in mongodb/mongo-c-driver@ed4d53e for CDRIVER-1203.
1 parent 36dd4de commit acc06c1

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

tests/manager/manager-executeBulkWrite_error-007.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ echo throws(function() use ($manager, $bulk) {
2828
<?php exit(0); ?>
2929
--EXPECTF--
3030
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
31-
No suitable servers found (`serverselectiontryonce` set): %s
31+
No suitable servers found (`serverSelectionTryOnce` set): %s
3232
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
33-
No suitable servers found (`serverselectiontryonce` set): %s
33+
No suitable servers found (`serverSelectionTryOnce` set): %s
3434
===DONE===

tests/manager/manager-executeCommand_error-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo throws(function() use ($manager, $command) {
2727
<?php exit(0); ?>
2828
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
30-
No suitable servers found (`serverselectiontryonce` set): %s
30+
No suitable servers found (`serverSelectionTryOnce` set): %s
3131
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
32-
No suitable servers found (`serverselectiontryonce` set): %s
32+
No suitable servers found (`serverSelectionTryOnce` set): %s
3333
===DONE===

tests/manager/manager-executeQuery_error-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo throws(function() use ($manager, $query) {
2727
<?php exit(0); ?>
2828
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
30-
No suitable servers found (`serverselectiontryonce` set): %s
30+
No suitable servers found (`serverSelectionTryOnce` set): %s
3131
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
32-
No suitable servers found (`serverselectiontryonce` set): %s
32+
No suitable servers found (`serverSelectionTryOnce` set): %s
3333
===DONE===

tests/manager/manager-selectserver_error-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo throws(function() use ($manager, $rp) {
2727
<?php exit(0); ?>
2828
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
30-
No suitable servers found (`serverselectiontryonce` set): %s
30+
No suitable servers found (`serverSelectionTryOnce` set): %s
3131
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
32-
No suitable servers found (`serverselectiontryonce` set): %s
32+
No suitable servers found (`serverSelectionTryOnce` set): %s
3333
===DONE===

tests/standalone/bug0655.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ ini_set('mongodb.debug', 'off');
3636
[%s] PHONGO: DEBUG > Connecting to 'invalid.host:27017[mongodb://invalid.host:27017]'
3737
%a
3838
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
39-
No suitable servers found (`serverselectiontryonce` set): %s
39+
No suitable servers found (`serverSelectionTryOnce` set): %s
4040
%a
4141
[%s] PHONGO: DEBUG > Applying connectTimeoutMS: 1
4242
[%s] PHONGO: DEBUG > Connecting to 'localhost:54321[mongodb://localhost:54321]'
4343
%a
4444
OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException
45-
No suitable servers found (`serverselectiontryonce` set): %s
45+
No suitable servers found (`serverSelectionTryOnce` set): %s
4646
===DONE===

0 commit comments

Comments
 (0)