Skip to content

Commit

Permalink
SNOW-502598: Use async for before/after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Oct 27, 2023
1 parent 038f781 commit 72751cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/testExecuteAsync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 72751cb

Please sign in to comment.