Skip to content

Commit ecea126

Browse files
committed
Refer to libmongoc error code in wire version test
1 parent 666f2d0 commit ecea126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/manager/manager-ctor-wireversion.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $command = new MongoDB\Driver\Command(['ping' => 1]);
1010
try {
1111
$manager->executeCommand("test", $command);
1212
} catch (\MongoDB\Driver\Exception\ConnectionException $e) {
13-
if ($e->getCode() == 15) { // Bad Wire Version
13+
if ($e->getCode() == 15) { // MONGOC_ERROR_PROTOCOL_BAD_WIRE_VERSION
1414
echo "Bad wire version detected: ", $e->getMessage(), "\n";
1515
}
1616
}

0 commit comments

Comments
 (0)