Skip to content

Commit

Permalink
test(core): fix clock skew unit test (#12509)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Nov 3, 2023
1 parent 02a91a4 commit c4f5983
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ describe('getUpdatedSystemClockOffset', () => {
const clockTime = new Date(signingDate);
clockTime.setMinutes(signingDate.getMinutes() - 15);
let offset = getUpdatedSystemClockOffset(clockTime.getTime(), 0);
// client clock skew is now 15 mins ahead, making is sync with server clock
clockTime.setMinutes(signingDate.getMinutes() + 15);
// client clock skew is now 15 mins ahead, making it sync with server clock
clockTime.setMinutes(clockTime.getMinutes() + 15);
offset = getUpdatedSystemClockOffset(clockTime.getTime(), offset);
expect(offset).toBe(0);
});
Expand Down

0 comments on commit c4f5983

Please sign in to comment.