Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stefane Fermigier
jio
Commits
c6815a0a
Commit
c6815a0a
authored
Aug 22, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JIO job recovery tests updated
parent
dbc670e3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test/jio/tests.js
test/jio/tests.js
+6
-2
No files found.
test/jio/tests.js
View file @
c6815a0a
...
...
@@ -781,7 +781,7 @@
jio
.
post
({});
// copy workspace
workspace
=
jIO
.
util
.
deepClone
(
workspace
);
clock
.
tick
(
1
);
clock
.
tick
(
1
);
// now: 1 ms
fakestorage
[
'
Job Recove/post
'
].
success
({
"
id
"
:
"
a
"
});
// create instance with copied workspace
...
...
@@ -793,7 +793,11 @@
});
// 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
'
])
{
return
ok
(
false
,
"
Command not called, job recovery failed
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment