From f9ccc29e81e1eb1d1d8f5e819fcb87266c069e36 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Tue, 11 Mar 2025 21:27:25 +0000 Subject: [PATCH] up --- src/tests/testStorage.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tests/testStorage.spec.ts b/src/tests/testStorage.spec.ts index 0be8264d..a1976488 100644 --- a/src/tests/testStorage.spec.ts +++ b/src/tests/testStorage.spec.ts @@ -4,6 +4,7 @@ import { runSanityCheck, safelySetUserBalance, TestBase } from './testBase.js' import { FindOptionsWhere } from 'typeorm' export const ignore = false export const dev = false +export const storageOnly = false export default async (T: TestBase) => { await testCanReadUser(T) @@ -45,6 +46,11 @@ const testConcurrentReads = async (T: TestBase) => { const testTransactionIsolation = async (T: TestBase) => { T.d('Starting testTransactionIsolation') // Start a transaction + // Check initial balance before transaction + const userBefore = await T.main.storage.dbs.FindOne('User', { + where: { user_id: T.user1.userId } + }) + T.expect(userBefore?.balance_sats).to.not.equal(1000, 'User should not start with balance of 1000') const txId = await T.main.storage.dbs.StartTx('test-transaction')