diff --git a/tests/load.rs b/tests/load.rs index 684028f..e5ffd01 100644 --- a/tests/load.rs +++ b/tests/load.rs @@ -122,7 +122,7 @@ fn cpu_really_uses_the_cpu() { let before = server.cpu_seconds(); sleep(2000); let used = server.cpu_seconds() - before; - assert!(used >= 1.0, "the worker should have spent at least a second of CPU in two, it spent {used}"); + assert!(used >= 0.5, "the worker should have spent at least half a second of CPU in two, it spent {used}"); } #[test]