Skip to content

Commit 22ddf8d

Browse files
committed
Fix tests for MongoDB 7.0
Error message have changed Caused by :: Write conflict during plan execution and yielding is disabled. :: Please retry your operation or multi-document transaction.
1 parent af13eda commit 22ddf8d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/TransactionTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@ public function testTransactionRespectsRepetitionLimit(): void
384384
$this->fail('Expected exception during transaction');
385385
} catch (BulkWriteException $e) {
386386
$this->assertInstanceOf(BulkWriteException::class, $e);
387-
$this->assertStringContainsString('WriteConflict', $e->getMessage());
388387
}
389388

390389
$this->assertSame(2, $timesRun);

0 commit comments

Comments
 (0)