Skip to content

Commit 9f17a50

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 9f17a50

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/build-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
- '4.2'
4141
- '4.4'
4242
- '5.0'
43+
- '6.0'
44+
- '7.0'
4345
php:
4446
- '8.1'
4547
- '8.2'

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)