Kill the mutants of the evidence separator and the CPU sum
This commit is contained in:
@@ -210,7 +210,8 @@ class ChildShells(unittest.TestCase):
|
||||
time.sleep(1)
|
||||
used = self.shell_of(busy).cpu - before
|
||||
self.assertGreater(used, 0.2 * (time.monotonic() - started))
|
||||
self.assertLess(used, 1.5 * (time.monotonic() - started))
|
||||
# Under 2 × the kernel's share alone, so a sum that counts one mode twice fails.
|
||||
self.assertLess(used, 1.15 * (time.monotonic() - started))
|
||||
processes = self.shell_of(busy).processes
|
||||
self.assertEqual([line.split(" ", 4)[4] for line in processes], ["dd if=/dev/zero of=/dev/null bs=1M", "sleep 60"])
|
||||
self.assertEqual([line.split(" ")[1] for line in processes], ["R", "S"])
|
||||
|
||||
Reference in New Issue
Block a user