Fix sporadic fails in timer unit-tests on Windows#10776
Fix sporadic fails in timer unit-tests on Windows#10776jschmidt-icinga merged 2 commits intomasterfrom
Conversation
|
Windows tests failing here, how ironic. However, that's not related to the change: Let's try that again, I've restarted the pipeline. |
|
Why the scientific notation though, instead of just using 1/10?
Wouldn't it make sense to revert that commit now then, since it didn't fix the issue it's supposed to fix? |
This PR essentially does that (values reverted to 0.55), just not in a separate commit. Do you want the separate revert commit for a clearer history or did you just not see that I changed the value back?
I subjectively prefer it for literals of 1, 10, etc. since it seems pointless to write out a zero decimal. I can change it to 1.0 etc. but it really doesn't matter IMHO. |
Yes, I expected a sperate commit generated with
It does matter, because it requires the reader to understand scientific notation to decipher that 1e0 is the same as 1, and so on. I would personally say it is pointless to use scientific notation for such trivial numbers and not the other way around, which even requires you to write more characters (10e0 instead of just 10). |
fa40f01 to
82b244c
Compare
82b244c to
72ebd43
Compare
|
yhabteab
left a comment
There was a problem hiding this comment.
If this really fixes the issue, then I'm fine with it.
I'd expect it to due to the following:
And I think we only started noticing these somewhat regular test failures after that change. |
Fix the test-cases
base_timer/invokeandbase_timer/scopestill sporadically failing on Windows, even after increasing the leeway given to the timers in #10743. Essentially, this gives tests 10x the time on Windows, effectively restoring the timings to the state before #10550, but only on Windows.