diff --git a/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs b/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs index c103721b33..163f11bf7c 100644 --- a/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs +++ b/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs @@ -96,14 +96,16 @@ const { createPoolCluster } = require('../../../../promise.js'); assert.ok(connection, 'should get connection'); connection.release(); - const [result] = await poolNamespace.query('SELECT 1 as a where 1 = ?', [ - 1, - ]); + const [result] = await poolNamespace.query( + 'SELECT 1 as a from dual where 1 = ?', + [1], + ); assert.equal(result[0]['a'], 1, 'should query successfully'); - const [result2] = await poolNamespace.execute('SELECT 1 as a where 1 = ?', [ - 1, - ]); + const [result2] = await poolNamespace.execute( + 'SELECT 1 as a from dual where 1 = ?', + [1], + ); assert.equal(result2[0]['a'], 1, 'should execute successfully'); poolCluster.end();