Skip to content

Commit f5d5111

Browse files
committed
Close test connections
1 parent 62c90dc commit f5d5111

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

test/benchmark.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe('benchmark', () => {
104104
console.debug(`${testFile} on ${database} took ${elapsedMs}ms\n`, result)
105105
}
106106

107-
// await destroyDatabaseAsync(connection, database)
107+
await destroyDatabaseAsync(connection, database)
108108
},
109109
2 * EXTRA_LONG_TIMEOUT
110110
)

test/connection-tls.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,22 @@ describe('connection-tls', () => {
7575
)
7676

7777
it('should connect with connection string', done => {
78-
if (CHINOOK_DATABASE_URL.indexOf('localhost') > 0) {
79-
// skip this test when running locally since it requires a self-signed certificate
80-
done()
81-
}
78+
// if (CHINOOK_DATABASE_URL.indexOf('localhost') > 0) {
79+
// // skip this test when running locally since it requires a self-signed certificate
80+
// done()
81+
// }
8282

8383
const connection = new SQLiteCloudTlsConnection(CHINOOK_DATABASE_URL, error => {
8484
expect(error).toBeNull()
8585
expect(connection.connected).toBe(true)
86+
connection.close()
8687

8788
const chinook = getConnection()
8889
chinook.sendCommands('TEST STRING', (error, results) => {
8990
expect(results).toBe('Hello World, this is a test string.')
9091

9192
done()
92-
connection.close()
93+
chinook.close()
9394
})
9495
})
9596
expect(connection).toBeDefined()

0 commit comments

Comments
 (0)