Skip to content

Commit

Permalink
🐛 no need to process.exit(0) in the test if the connection is properl…
Browse files Browse the repository at this point in the history
…y destroyed
  • Loading branch information
fluffynuts committed Mar 14, 2024
1 parent 11c77e6 commit 72e113c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/test-multi-result-streaming.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const { createConnection } = require('../common.test.cjs');
sql2 =
'select * from information_schema.columns order by table_schema, table_name limit 1;';

await conn.promise().query("set global max_allowed_packet=524288000");

const compare1 = await conn.promise().query(sql1);
const compare2 = await conn.promise().query(sql2);

Expand Down Expand Up @@ -49,5 +51,5 @@ const { createConnection } = require('../common.test.cjs');
assert.deepEqual(captured1[0], compare1[0][0]);
assert.deepEqual(captured2[0], compare2[0][0]);

process.exit(0);
conn.destroy();
})();

0 comments on commit 72e113c

Please sign in to comment.