Skip to content

Commit

Permalink
test: use finally in runner instead of catch and rethrow
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jul 23, 2021
1 parent 4bacd3b commit 26c16c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/functional/unified-spec-runner/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,9 @@ export async function runUnifiedTest(
trace(operation.name);
try {
await executeOperationAndCheck(operation, entities, utilClient);
} catch (err) {
} finally {
// clean up all sessions on failed test, and rethrow
await terminateOpenTransactions(utilClient);

throw err;
}
}

Expand Down

0 comments on commit 26c16c4

Please sign in to comment.