From 771b4c2eca7cefc43024ffafe1406fe9bb58da76 Mon Sep 17 00:00:00 2001 From: Igor Savin Date: Tue, 21 Nov 2023 01:29:08 +0200 Subject: [PATCH] Add missing disposal --- .../consumers/SqsPermissionsConsumerMonoSchema.errors.spec.ts | 2 +- .../test/consumers/SqsPermissionsConsumerMultiSchema.spec.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/sqs/test/consumers/SqsPermissionsConsumerMonoSchema.errors.spec.ts b/packages/sqs/test/consumers/SqsPermissionsConsumerMonoSchema.errors.spec.ts index b8804dc1..5a7e9fe3 100644 --- a/packages/sqs/test/consumers/SqsPermissionsConsumerMonoSchema.errors.spec.ts +++ b/packages/sqs/test/consumers/SqsPermissionsConsumerMonoSchema.errors.spec.ts @@ -14,7 +14,7 @@ import type { Dependencies } from '../utils/testContext' const perms: [string, ...string[]] = ['perm1', 'perm2'] -describe.skip('SqsPermissionsConsumerMonoSchema', () => { +describe('SqsPermissionsConsumerMonoSchema', () => { describe('error handling', () => { let diContainer: AwilixContainer let publisher: SqsPermissionPublisherMonoSchema diff --git a/packages/sqs/test/consumers/SqsPermissionsConsumerMultiSchema.spec.ts b/packages/sqs/test/consumers/SqsPermissionsConsumerMultiSchema.spec.ts index f26fe986..3fb23100 100644 --- a/packages/sqs/test/consumers/SqsPermissionsConsumerMultiSchema.spec.ts +++ b/packages/sqs/test/consumers/SqsPermissionsConsumerMultiSchema.spec.ts @@ -73,6 +73,7 @@ describe('SqsPermissionsConsumerMultiSchema', () => { }) afterEach(async () => { + await diContainer.cradle.awilixManager.executeDispose() await diContainer.dispose() }) @@ -110,6 +111,7 @@ describe('SqsPermissionsConsumerMultiSchema', () => { }) afterEach(async () => { + await diContainer.cradle.awilixManager.executeDispose() await diContainer.dispose() }) @@ -204,6 +206,7 @@ describe('SqsPermissionsConsumerMultiSchema', () => { }) afterEach(async () => { + await diContainer.cradle.awilixManager.executeDispose() await diContainer.dispose() })