From 72e113c6d90d0ada933850f48f1fdeb1cfebfc58 Mon Sep 17 00:00:00 2001 From: Davyd McColl Date: Thu, 14 Mar 2024 12:10:40 +0200 Subject: [PATCH] :bug: no need to process.exit(0) in the test if the connection is properly destroyed --- test/integration/test-multi-result-streaming.test.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/test-multi-result-streaming.test.cjs b/test/integration/test-multi-result-streaming.test.cjs index 1a4cf9518a..a97c9d1f78 100644 --- a/test/integration/test-multi-result-streaming.test.cjs +++ b/test/integration/test-multi-result-streaming.test.cjs @@ -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); @@ -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(); })();