We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4449c23 commit 6bfad13Copy full SHA for 6bfad13
test/integration/promise-wrappers/test-promise-wrappers.test.cjs
@@ -207,18 +207,13 @@ function testEventsConnect() {
207
208
function testBasicPool() {
209
const pool = createPool(config);
210
- const promiseConn = pool.getConnection();
211
212
- promiseConn
+ pool
+ .getConnection()
213
.then((connResolved) => {
214
pool.releaseConnection(connResolved);
215
+ return pool.query('select 1+2 as ttt');
216
})
- .catch((err) => {
217
- throw err;
218
- });
219
-
220
- pool
221
- .query('select 1+2 as ttt')
222
.then((result1) => {
223
assert.equal(result1[0][0].ttt, 3);
224
return pool.query('select 2+2 as qqq');
0 commit comments