From 72751cb01cb99bfbf7a2070793cb0fd6a3c37aa0 Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-lf Date: Fri, 27 Oct 2023 08:04:08 -0700 Subject: [PATCH] SNOW-502598: Use async for before/after tests --- test/integration/testExecuteAsync.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/testExecuteAsync.js b/test/integration/testExecuteAsync.js index 2864a2ac8..401045252 100644 --- a/test/integration/testExecuteAsync.js +++ b/test/integration/testExecuteAsync.js @@ -11,13 +11,13 @@ const QueryStatus = require('../../lib/constants/query_status').code; describe('ExecuteAsync test', function () { let connection; - before(function (done) { + before(async () => { connection = testUtil.createConnection(); - testUtil.connect(connection, done); + await testUtil.connectAsync(connection); }); - after(function (done) { - testUtil.destroyConnection(connection, done); + after(async () => { + await testUtil.destroyConnectionAsync(connection); }); it('testAsyncQueryWithPromise', function (done) {