We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8f2fc commit b2cc352Copy full SHA for b2cc352
tests/e2e/Adapter/Scopes/GeneralTests.php
@@ -898,12 +898,20 @@ public function testTransactionStateAfterKnownException(): void
898
/**
899
* Test that withTransaction correctly resets inTransaction state
900
* when retries are exhausted for a generic exception.
901
+ *
902
+ * MongoDB's withTransaction has no retry logic, so this test
903
+ * only applies to SQL-based adapters.
904
*/
905
public function testTransactionStateAfterRetriesExhausted(): void
906
{
907
/** @var Database $database */
908
$database = $this->getDatabase();
909
910
+ if ($database->getAdapter() instanceof Mongo) {
911
+ $this->expectNotToPerformAssertions();
912
+ return;
913
+ }
914
+
915
$attempts = 0;
916
917
try {
0 commit comments