fix test
This commit is contained in:
parent
9e63703d59
commit
5078c58303
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue