This commit is contained in:
まっちゃとーにゅ 2024-03-06 02:56:00 +09:00
parent 9e63703d59
commit 5078c58303
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
3 changed files with 3 additions and 3 deletions

View file

@ -129,7 +129,7 @@ describe('FetchInstanceMetadataService', () => {
const unlockSpy = jest.spyOn(fetchInstanceMetadataService, 'unlock');
await fetchInstanceMetadataService.fetchInstanceMetadata({ host: 'example.com' } as any, true);
expect(tryLockSpy).toHaveBeenCalledTimes(0);
expect(tryLockSpy).toHaveBeenCalledTimes(1);
expect(unlockSpy).toHaveBeenCalledTimes(1);
expect(federatedInstanceService.fetch).toHaveBeenCalledTimes(0);
expect(httpRequestService.getJson).toHaveBeenCalled();