Update FetchInstanceMetadataService.ts

This commit is contained in:
syuilo 2023-09-03 15:17:09 +09:00
parent ddc46c9f13
commit 41fb22b793
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ describe('FetchInstanceMetadataService', () => {
let httpRequestService: jest.Mocked<HttpRequestService>; let httpRequestService: jest.Mocked<HttpRequestService>;
let redisClient: jest.Mocked<Redis>; let redisClient: jest.Mocked<Redis>;
beforeAll(async () => { beforeEach(async () => {
app = await Test app = await Test
.createTestingModule({ .createTestingModule({
imports: [ imports: [
@ -66,7 +66,7 @@ describe('FetchInstanceMetadataService', () => {
httpRequestService = app.get<HttpRequestService>(HttpRequestService) as jest.Mocked<HttpRequestService>; httpRequestService = app.get<HttpRequestService>(HttpRequestService) as jest.Mocked<HttpRequestService>;
}); });
afterAll(async () => { afterEach(async () => {
await app.close(); await app.close();
}); });