From 39b47c6410dbbb31c8329043d1ea1fc636039bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20C=2E=20Marti=CC=81nez?= Date: Fri, 6 Dec 2024 09:35:57 +0100 Subject: [PATCH] Fix: PromisePoolCluster.of returns PromisePoolCluster instead of PoolNamespace (#3091) --- .../pool-cluster/test-promise-wrapper.test.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 1b9bfea730..a788bb46b6 100644 --- a/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs +++ b/test/esm/integration/pool-cluster/test-promise-wrapper.test.mjs @@ -91,10 +91,16 @@ const { createPoolCluster } = require('../../../../promise.js'); assert.ok(connection, 'should get connection'); connection.release(); - const result = await poolNamespace.query('SELECT 1 as a from dual 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 from dual 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'); }); })();