Skip to content

Commit a287ded

Browse files
committed
PHPC-553: Relax expected output patterns for HHVM
1 parent 19bfb1a commit a287ded

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/manager/manager-executeBulkWrite_error-007.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ echo throws(function() use ($manager, $bulk) {
2626
?>
2727
===DONE===
2828
<?php exit(0); ?>
29-
--EXPECT--
29+
--EXPECTF--
3030
OK: Got MongoDB\Driver\Exception\RuntimeException
31-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'invalid.host:27017': php_network_getaddresses: getaddrinfo failed: Name or service not known]
31+
No suitable servers found (`serverselectiontryonce` set): %s
3232
OK: Got MongoDB\Driver\Exception\RuntimeException
33-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'localhost:54321': Connection refused]
33+
No suitable servers found (`serverselectiontryonce` set): %s
3434
===DONE===

tests/manager/manager-executeCommand_error-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ echo throws(function() use ($manager, $command) {
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\RuntimeException
30-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'invalid.host:27017': php_network_getaddresses: getaddrinfo failed: Name or service not known]
30+
No suitable servers found (`serverselectiontryonce` set): %s
3131
OK: Got MongoDB\Driver\Exception\RuntimeException
32-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'localhost:54321': Connection refused]
32+
No suitable servers found (`serverselectiontryonce` set): %s
3333
===DONE===

tests/manager/manager-executeQuery_error-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ echo throws(function() use ($manager, $query) {
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\RuntimeException
30-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'invalid.host:27017': php_network_getaddresses: getaddrinfo failed: Name or service not known]
30+
No suitable servers found (`serverselectiontryonce` set): %s
3131
OK: Got MongoDB\Driver\Exception\RuntimeException
32-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'localhost:54321': Connection refused]
32+
No suitable servers found (`serverselectiontryonce` set): %s
3333
===DONE===

tests/manager/manager-selectserver_error-001.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ echo throws(function() use ($manager, $rp) {
2525
?>
2626
===DONE===
2727
<?php exit(0); ?>
28-
--EXPECT--
28+
--EXPECTF--
2929
OK: Got MongoDB\Driver\Exception\RuntimeException
30-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'invalid.host:27017': php_network_getaddresses: getaddrinfo failed: Name or service not known]
30+
No suitable servers found (`serverselectiontryonce` set): %s
3131
OK: Got MongoDB\Driver\Exception\RuntimeException
32-
No suitable servers found (`serverselectiontryonce` set): [Failed connecting to 'localhost:54321': Connection refused]
32+
No suitable servers found (`serverselectiontryonce` set): %s
3333
===DONE===

0 commit comments

Comments
 (0)