Skip to content

Commit 41d716a

Browse files
author
bob@babbageproject.com
committed
now creates empty sqlite DB for each listActions test
1 parent ab68cd2 commit 41d716a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

test/wallet/list/listActions2.test.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ describe('listActions single action tests', () => {
1919
let setups: { setup: TestSetup2; storage: StorageProvider }[] = []
2020

2121
const env = _tu.getEnv('test')
22+
const testName = () => expect.getState().currentTestName || 'test'
2223

2324
beforeEach(async () => {
2425
setups = []
@@ -34,7 +35,14 @@ describe('listActions single action tests', () => {
3435
if (env.runMySQL) {
3536
ctxs.push(await _tu.createLegacyWalletMySQLCopy(testName))
3637
}
37-
ctxs.push(await _tu.createLegacyWalletSQLiteCopy(testName))
38+
await _tu.createSQLiteTestWallet({
39+
chain: 'test',
40+
databaseName: testName(),
41+
rootKeyHex: '2'.repeat(64),
42+
dropAll: true
43+
})
44+
45+
//ctxs.push(await _tu.createLegacyWalletSQLiteCopy(testName))
3846

3947
const mockData: MockData = {
4048
actions: [
@@ -1195,6 +1203,7 @@ describe('listActions two action tests', () => {
11951203
let setups: { setup: TestSetup2; storage: StorageProvider }[] = []
11961204

11971205
const env = _tu.getEnv('test')
1206+
const testName = () => expect.getState().currentTestName || 'test'
11981207

11991208
beforeEach(async () => {
12001209
setups = []
@@ -1210,7 +1219,12 @@ describe('listActions two action tests', () => {
12101219
if (env.runMySQL) {
12111220
ctxs.push(await _tu.createLegacyWalletMySQLCopy(testName))
12121221
}
1213-
ctxs.push(await _tu.createLegacyWalletSQLiteCopy(testName))
1222+
await _tu.createSQLiteTestWallet({
1223+
chain: 'test',
1224+
databaseName: testName(),
1225+
rootKeyHex: '2'.repeat(64),
1226+
dropAll: true
1227+
})
12141228

12151229
const mockData: MockData = {
12161230
actions: [

0 commit comments

Comments
 (0)