Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 37f61eb

Browse files
Merge v1.x into v2.x (#1656)
2 parents fc92768 + 9e6948d commit 37f61eb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

‎tests/FunctionalTestCase.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use MongoDB\Operation\DatabaseCommand;
1818
use MongoDB\Operation\ListCollections;
1919
use stdClass;
20-
use Throwable;
2120
use UnexpectedValueException;
2221

2322
use function array_intersect_key;
@@ -70,15 +69,12 @@ public function setUp(): void
7069
$this->configuredFailPoints = [];
7170
}
7271

73-
protected function onNotSuccessfulTest(Throwable $t): never
74-
{
75-
$this->cleanupCollections();
76-
77-
throw $t;
78-
}
79-
8072
public function tearDown(): void
8173
{
74+
if ($this->status()->isSuccess()) {
75+
$this->cleanupCollections();
76+
}
77+
8278
$this->disableFailPoints();
8379

8480
parent::tearDown();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /