if
This commit is contained in:
parent
01b8d2fdb1
commit
ab29cbab41
|
@ -87,7 +87,7 @@ describe('FetchInstanceMetadataService', () => {
|
|||
expect(httpRequestService.getJson).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test('Don\'t lock and update when recently updated', async () => {
|
||||
test('Don\'t lock and update if recently updated', async () => {
|
||||
redisClient.set = mockRedis();
|
||||
federatedInstanceService.fetch.mockResolvedValue({ infoUpdatedAt: new Date() } as any);
|
||||
httpRequestService.getJson.mockImplementation(() => { throw Error(); });
|
||||
|
|
Loading…
Reference in a new issue