Skip to content

Commit 8921152

Browse files
jmikolaalcaeus
authored andcommitted
Ensure event listeners are still unregistered after an operation fails
1 parent b142235 commit 8921152

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/UnifiedSpecTests/UnifiedTestRunner.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,9 @@ private function doTestCase(stdClass $test, string $schemaVersion, ?array $runOn
213213
$operation = new Operation($o, $context);
214214
$operation->assert();
215215
}
216-
216+
} finally {
217217
$context->stopEventObservers();
218218
$context->stopEventCollectors();
219-
} finally {
220219
$context->disableFailPoints();
221220
}
222221

0 commit comments

Comments
 (0)