From 17aa886e04d26782f8ca9bcb3a0d91fbfe6adfca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sun, 22 May 2016 11:51:18 -0400 Subject: [PATCH] test: update test_kill_process to revamped Clock MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- tests/test_kill_process.nit | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_kill_process.nit b/tests/test_kill_process.nit index 21728c1..a9f3e61 100644 --- a/tests/test_kill_process.nit +++ b/tests/test_kill_process.nit @@ -21,12 +21,11 @@ var clock = new Clock var p = new Process("sleep", "10") # Send some signals -p.signal(sigalarm) +p.signal sigalarm p.kill # Wait for it to die p.wait -var lapse = clock.lapse # Let's be generous here, as long as it does not take 5 secs out of 10 it's OK -print lapse.sec < 5 +print clock.lapse < 5.0 -- 1.7.9.5