From f87005ae0bef04281ed0ef88aa2e65ee0c4ba042 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Fri, 24 Oct 2014 13:18:48 +0200 Subject: [PATCH] attempt to make test more deterministic --- js/server/tests/shell-tasks-timecritical.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/server/tests/shell-tasks-timecritical.js b/js/server/tests/shell-tasks-timecritical.js index 6ea7495182..6df3cadc80 100644 --- a/js/server/tests/shell-tasks-timecritical.js +++ b/js/server/tests/shell-tasks-timecritical.js @@ -586,7 +586,7 @@ function TaskSuite () { command: command, period: 1, offset: 0, - params: 23 + params: 17 }); assertEqual("UnitTests1", task.id); @@ -600,7 +600,7 @@ function TaskSuite () { tasks.unregister(task); assertTrue(db[cn].count() > 0); - assertTrue(db[cn].byExample({ value: 23 }).toArray().length > 0); + assertTrue(db[cn].byExample({ value: 17 }).toArray().length > 0); }, //////////////////////////////////////////////////////////////////////////////// @@ -637,7 +637,6 @@ function TaskSuite () { tasks.unregister(task); assertTrue(db[cn].count() > 0); - assertTrue(db[cn].byExample({ value: 23 }).toArray().length === 0); assertTrue(db[cn].byExample({ value: 42 }).toArray().length > 0); }