Skip to content

Commit 16f5f34

Browse files
Clear orphaned databases manually
1 parent dfcbf70 commit 16f5f34

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

test/connection.test.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ import {
1212
getChinookConfig,
1313
getChinookConnection,
1414
WARN_SPEED_MS,
15-
EXPECT_SPEED_MS,
16-
clearTestingDatabasesAsync
15+
EXPECT_SPEED_MS
16+
// clearTestingDatabasesAsync
1717
} from './shared'
1818

1919
describe('connection', () => {
2020
let chinook: SQLiteCloudConnection
21-
21+
/*
2222
beforeAll(async () => {
23-
await clearTestingDatabasesAsync()
23+
2424
})
25-
25+
*/
2626
beforeEach(() => {
2727
chinook = getChinookConnection()
2828
})
@@ -38,6 +38,12 @@ describe('connection', () => {
3838
// ...in beforeEach
3939
})
4040

41+
/*
42+
it('should run manually once in a while to clear orphaned databases', async () => {
43+
await clearTestingDatabasesAsync()
44+
})
45+
*/
46+
4147
it('should add self signed certificate for localhost connections', () => {
4248
const localConfig = getChinookConfig('sqlitecloud://admin:xxx@localhost:8850/chinook.db')
4349
expect(localConfig.host).toBe('localhost')

0 commit comments

Comments
 (0)