Skip to content

Commit 6bfad13

Browse files
authored
ci: resolve Promise wrapper flaky test (#3817)
1 parent 4449c23 commit 6bfad13

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/integration/promise-wrappers/test-promise-wrappers.test.cjs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,18 +207,13 @@ function testEventsConnect() {
207207

208208
function testBasicPool() {
209209
const pool = createPool(config);
210-
const promiseConn = pool.getConnection();
211210

212-
promiseConn
211+
pool
212+
.getConnection()
213213
.then((connResolved) => {
214214
pool.releaseConnection(connResolved);
215+
return pool.query('select 1+2 as ttt');
215216
})
216-
.catch((err) => {
217-
throw err;
218-
});
219-
220-
pool
221-
.query('select 1+2 as ttt')
222217
.then((result1) => {
223218
assert.equal(result1[0][0].ttt, 3);
224219
return pool.query('select 2+2 as qqq');

0 commit comments

Comments
 (0)