fix flaky test TimeTest.testBetweenWithMask#1790
Conversation
Sometimes the test failed when * "moment + 1 second" appeared to be in tomorrow, or * "moment - 1 second" appeared to be in yesterday Example of failed build: https://github.com/datafaker-net/datafaker/actions/runs/23998847901/job/69991488685?pr=1789 ``` Expecting actual: 23:59:22 to be strictly before: 00:00:00.106916777 at net.datafaker.providers.base.TimeTest.testBetweenWithMask(TimeTest.java:107) ```
PR Summary
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1790 +/- ##
============================================
+ Coverage 92.28% 92.39% +0.10%
- Complexity 3445 3448 +3
============================================
Files 339 339
Lines 6794 6794
Branches 670 670
============================================
+ Hits 6270 6277 +7
+ Misses 356 353 -3
+ Partials 168 164 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sometimes the test failed when
Example of failed build:
https://github.com/datafaker-net/datafaker/actions/runs/23998847901/job/69991488685?pr=1789