This commit is contained in:
tamaina 2024-03-05 16:44:32 +00:00
parent 01b8d2fdb1
commit ab29cbab41

View file

@ -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(); });