Skip to content

Commit 5bfe184

Browse files
committed
Fix code safety issue
1 parent 49b48de commit 5bfe184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export function testWithClient(name: string, fn: Test, timeout?: number) {
2424
}
2525
if (!client.closed) {
2626
await client.end();
27-
if (!client.closed) throw new Error("Expected client to be closed");
2827
}
2928
}
29+
if (!client.closed) throw new Error("Expected client to be closed");
3030
}, timeout);
3131
}

0 commit comments

Comments
 (0)