Skip to content

Commit e07c7c6

Browse files
author
MIYASHITA, Akihiro
committed
fix
1 parent 28dc81a commit e07c7c6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ class Connection {
407407
/**
408408
* Explicitly close the connection
409409
*/
410-
close() {
411-
return this._conn.destroy();
410+
async close() {
411+
await this._conn.destroy();
412412
}
413413

414414
/**

lib/runner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class TestRunner {
379379
}
380380
}
381381
} finally {
382-
conn && conn.close();
382+
conn && await conn.close();
383383
}
384384
}
385385

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "track-db-test-library",
3-
"version": "2.5.0-rc2",
3+
"version": "2.5.0-rc3",
44
"description": "Test utility for Track database challenges",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)