From 282a71756634230973482fbe0e4abe92d1c9e1e0 Mon Sep 17 00:00:00 2001 From: koekiebox Date: Mon, 9 Sep 2024 13:02:07 +0200 Subject: [PATCH] feat(workweek): fix test cases. --- .../backend/src/graphql/resolvers/wallet_address.test.ts | 5 ++++- packages/backend/src/open_payments/quote/service.test.ts | 5 ++++- .../backend/src/open_payments/wallet_address/service.test.ts | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/graphql/resolvers/wallet_address.test.ts b/packages/backend/src/graphql/resolvers/wallet_address.test.ts index ff51dd0d1f..32c0628a0b 100644 --- a/packages/backend/src/graphql/resolvers/wallet_address.test.ts +++ b/packages/backend/src/graphql/resolvers/wallet_address.test.ts @@ -43,7 +43,10 @@ describe('Wallet Address Resolvers', (): void => { let walletAddressService: WalletAddressService beforeAll(async (): Promise => { - deps = await initIocContainer(Config) + deps = initIocContainer({ + ...Config, + localCacheDuration: 0 + }) appContainer = await createTestApp(deps) knex = appContainer.knex walletAddressService = await deps.use('walletAddressService') diff --git a/packages/backend/src/open_payments/quote/service.test.ts b/packages/backend/src/open_payments/quote/service.test.ts index 4bddd700f5..0e5108c3fa 100644 --- a/packages/backend/src/open_payments/quote/service.test.ts +++ b/packages/backend/src/open_payments/quote/service.test.ts @@ -70,7 +70,10 @@ describe('QuoteService', (): void => { } beforeAll(async (): Promise => { - deps = initIocContainer(Config) + deps = initIocContainer({ + ...Config, + localCacheDuration: 0 + }) appContainer = await createTestApp(deps) knex = appContainer.knex diff --git a/packages/backend/src/open_payments/wallet_address/service.test.ts b/packages/backend/src/open_payments/wallet_address/service.test.ts index 637cd6e81b..78dd1b93c3 100644 --- a/packages/backend/src/open_payments/wallet_address/service.test.ts +++ b/packages/backend/src/open_payments/wallet_address/service.test.ts @@ -35,7 +35,10 @@ describe('Open Payments Wallet Address Service', (): void => { let knex: Knex beforeAll(async (): Promise => { - deps = initIocContainer(Config) + deps = initIocContainer({ + ...Config, + localCacheDuration: 0 + }) config = await deps.use('config') appContainer = await createTestApp(deps) knex = appContainer.knex