Update FetchInstanceMetadataService.ts
This commit is contained in:
parent
ddc46c9f13
commit
41fb22b793
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue