Closed Forsworns closed 2 years ago
Takeaway:
Windows Server 2019 takes more time to create a thread and acquire a lock.
The thread::sleep
in millisecond is not accurate on MacOS 11.
It fails again on Windows Server 2022....
Similar reason as the core::stat::base::leap_array::test::valid_head
failure on MacOS 11, f6b2831b42d03f0378a97f548ff938b1fb5ff33a
See failures on Windows and MacOS.
In short,
core::system_metric::test::process_cpu_stat
fails randomly both on windows-lastest and macos-latest.core::stat::base::leap_array::test::valid_headt
fails randomly on macos-latest. (This failure is more severe).Local tests on Windows10 and Windows11 never fail. Docker Image sickcodes/Docker-OSX is hard to deploy on WSL, so I didn't test MacOS locally.