Closed divyesh87 closed 2 weeks ago
Motivation
Clock tests at clock.test.ts keep failing from time to time due to edge cases arising from the use of Date.now This aims to fix that.
clock.test.ts
Date.now
Description
This change overrides the system time before each test case to make the tests run deterministically.
Closes #6734
All committers have signed the CLA.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 62.19%. Comparing base (95ce044) to head (10428a8). Report is 21 commits behind head on unstable.
95ce044
10428a8
Motivation
Clock tests at
clock.test.ts
keep failing from time to time due to edge cases arising from the use ofDate.now
This aims to fix that.Description
This change overrides the system time before each test case to make the tests run deterministically.
Closes #6734