Skip to content

Commit 356b89c

Browse files
authored
Note name of error code literal in findAndModify WC test (#984)
1 parent c8f1188 commit 356b89c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Operation/FindAndModifyFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function testFindAndModifyReportedWriteConcernError(): void
100100
}
101101

102102
$this->expectException(CommandException::class);
103-
$this->expectExceptionCode(100);
103+
$this->expectExceptionCode(100 /* UnsatisfiableWriteConcern */);
104104
$this->expectExceptionMessageMatches('/Write Concern error:/');
105105

106106
$operation = new FindAndModify(

0 commit comments

Comments
 (0)