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
Alain Takoudjou
jio
Commits
8f8d444c
Commit
8f8d444c
authored
Aug 22, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JIO job management tests wrong date used fixed
parent
56716fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
test/jio/tests.js
test/jio/tests.js
+10
-8
No files found.
test/jio/tests.js
View file @
8f8d444c
...
...
@@ -681,10 +681,10 @@
"
options
"
:
{
"
max_retry
"
:
2
,
"
timeout
"
:
12
},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
1 Job Manage
"
},
"
method
"
:
"
get
"
,
"
created
"
:
new
Date
(
0
),
"
created
"
:
new
Date
(),
"
tried
"
:
1
,
"
state
"
:
"
running
"
,
"
modified
"
:
new
Date
(
0
),
"
modified
"
:
new
Date
(),
"
max_retry
"
:
2
,
"
timeout
"
:
12
,
"
id
"
:
1
...
...
@@ -694,9 +694,9 @@
uniqueJSONStringify
([
o
.
job1
])
},
'
Job added, workspace have one job
'
);
clock
.
tick
(
1
);
clock
.
tick
(
1
);
// now: 1 ms
fakestorage
[
"
1 Job Manage/get
"
].
success
({
"
_id
"
:
"
a
"
,
"
b
"
:
"
c
"
});
clock
.
tick
(
1
);
clock
.
tick
(
1
);
// now: 2 ms
deepEqual
(
workspace
,
{},
'
Job ended, empty workspace
'
);
...
...
@@ -712,7 +712,10 @@
"
statusText
"
:
"
Ok
"
},
"
First job respond
"
);
});
clock
.
tick
(
1
);
o
.
job1
.
kwargs
.
_id
=
'
b
'
;
o
.
job1
.
created
=
new
Date
();
o
.
job1
.
modified
=
new
Date
();
clock
.
tick
(
1
);
// now: 3 ms
fakestorage
[
"
1 Job Manage/get
"
].
storage
({
"
type
"
:
"
fake
"
,
"
id
"
:
"
2 Job Manage
"
...
...
@@ -726,16 +729,15 @@
},
"
Second job respond
"
);
});
o
.
job1
.
kwargs
.
_id
=
'
b
'
;
o
.
job2
=
{
"
kwargs
"
:
{
"
_id
"
:
"
c
"
},
"
options
"
:
{},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
2 Job Manage
"
},
"
method
"
:
"
get
"
,
"
created
"
:
new
Date
(
0
),
"
created
"
:
new
Date
(),
"
tried
"
:
1
,
"
state
"
:
"
running
"
,
"
modified
"
:
new
Date
(
0
),
"
modified
"
:
new
Date
(),
"
max_retry
"
:
3
,
"
timeout
"
:
10000
,
"
id
"
:
2
...
...
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