Skip to content

Commit a5cb6c5

Browse files
committed
close connection at the end
1 parent 7055089 commit a5cb6c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/promise-wrappers/test-async-stack.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ function test() {
4141
try {
4242
e2 = new Error();
4343
await Promise.all([conn.query('select 1+1'), conn.query('syntax error')]);
44+
} catch (err) {
4445
const stack = ErrorStackParser.parse(err);
4546
const stackExpected = ErrorStackParser.parse(e2);
4647
assert(stack[1].getLineNumber() === stackExpected[0].getLineNumber() + 1);
47-
} catch (e) {
48-
assert(0);
48+
conn.end();
4949
}
5050
}
5151

0 commit comments

Comments
 (0)