UK-Export-Finance / dtfs2

Digital Trade Finance
MIT License
11 stars 1 forks source link

chore(DTFS2-NONE): fix flakey test #3668

Closed BethThomas141 closed 2 weeks ago

BethThomas141 commented 2 weeks ago

Introduction :pencil2:

As reported in the flaky test reporting slack channel, this test has failed on a few different PRs recently. It relies heavily on consistent values of new Date().

Resolution :heavy_check_mark:

Freeze the value of new Date() at the start of the test and unfreeze it at the end.

Miscellaneous :heavy_plus_sign:

List any additional fixes or improvements.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud