Commit c6815a0a authored by Tristan Cavelier's avatar Tristan Cavelier

JIO job recovery tests updated

parent dbc670e3
...@@ -781,7 +781,7 @@ ...@@ -781,7 +781,7 @@
jio.post({}); jio.post({});
// copy workspace // copy workspace
workspace = jIO.util.deepClone(workspace); workspace = jIO.util.deepClone(workspace);
clock.tick(1); clock.tick(1); // now: 1 ms
fakestorage['Job Recove/post'].success({"id": "a"}); fakestorage['Job Recove/post'].success({"id": "a"});
// create instance with copied workspace // create instance with copied workspace
...@@ -793,7 +793,11 @@ ...@@ -793,7 +793,11 @@
}); });
// wait for action // wait for action
clock.tick(20020); // 20 seconds clock.tick(19998); // now: 19999 ms
if (fakestorage['Job Recove/post']) {
return ok(false, "Command called, job recovered to earlier");
}
clock.tick(1); // now: 20000 ms
if (!fakestorage['Job Recove/post']) { if (!fakestorage['Job Recove/post']) {
return ok(false, "Command not called, job recovery failed"); return ok(false, "Command not called, job recovery failed");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment