Skip to content

Commit

Permalink
test: skip afterEach if test is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp committed Aug 29, 2022
1 parent d7ce532 commit 9334235
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const filter: TestFilter = ({ description }) => {

describe('SDAM Unified Tests', function () {
afterEach(async function () {
if (this.currentTest!.pending) {
return;
}
// TODO(NODE-4573): fix socket leaks
const LEAKY_TESTS = [
'Command error on Monitor handshake',
Expand Down

0 comments on commit 9334235

Please sign in to comment.