Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
idan-orbs committed Jan 24, 2023
1 parent 5ef1ce2 commit a45445c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/read/management.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ test.serial('invalid JSON format ManagementStatus response from management servi
test.serial('partial ManagementStatus response from management service', async (t) => {
const state = new State();
const partialResponse = _.cloneDeep(validManagementStatusResponse);
delete partialResponse.Payload.CurrentRefTime;
nock(exampleManagementServiceEndpoint).get(managementStatusPath).reply(200, JSON.stringify(partialResponse));
await t.throwsAsync(async () => {
await readManagementStatus(exampleManagementServiceEndpoint, myOrbsAddress, state);
Expand Down

0 comments on commit a45445c

Please sign in to comment.