Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
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
Show 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 @@
...
@@ -681,10 +681,10 @@
"
options
"
:
{
"
max_retry
"
:
2
,
"
timeout
"
:
12
},
"
options
"
:
{
"
max_retry
"
:
2
,
"
timeout
"
:
12
},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
1 Job Manage
"
},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
1 Job Manage
"
},
"
method
"
:
"
get
"
,
"
method
"
:
"
get
"
,
"
created
"
:
new
Date
(
0
),
"
created
"
:
new
Date
(),
"
tried
"
:
1
,
"
tried
"
:
1
,
"
state
"
:
"
running
"
,
"
state
"
:
"
running
"
,
"
modified
"
:
new
Date
(
0
),
"
modified
"
:
new
Date
(),
"
max_retry
"
:
2
,
"
max_retry
"
:
2
,
"
timeout
"
:
12
,
"
timeout
"
:
12
,
"
id
"
:
1
"
id
"
:
1
...
@@ -694,9 +694,9 @@
...
@@ -694,9 +694,9 @@
uniqueJSONStringify
([
o
.
job1
])
uniqueJSONStringify
([
o
.
job1
])
},
'
Job added, workspace have one job
'
);
},
'
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
"
});
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
'
);
deepEqual
(
workspace
,
{},
'
Job ended, empty workspace
'
);
...
@@ -712,7 +712,10 @@
...
@@ -712,7 +712,10 @@
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
Ok
"
},
"
First job respond
"
);
},
"
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
({
fakestorage
[
"
1 Job Manage/get
"
].
storage
({
"
type
"
:
"
fake
"
,
"
type
"
:
"
fake
"
,
"
id
"
:
"
2 Job Manage
"
"
id
"
:
"
2 Job Manage
"
...
@@ -726,16 +729,15 @@
...
@@ -726,16 +729,15 @@
},
"
Second job respond
"
);
},
"
Second job respond
"
);
});
});
o
.
job1
.
kwargs
.
_id
=
'
b
'
;
o
.
job2
=
{
o
.
job2
=
{
"
kwargs
"
:
{
"
_id
"
:
"
c
"
},
"
kwargs
"
:
{
"
_id
"
:
"
c
"
},
"
options
"
:
{},
"
options
"
:
{},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
2 Job Manage
"
},
"
storage_spec
"
:
{
"
type
"
:
"
fake
"
,
"
id
"
:
"
2 Job Manage
"
},
"
method
"
:
"
get
"
,
"
method
"
:
"
get
"
,
"
created
"
:
new
Date
(
0
),
"
created
"
:
new
Date
(),
"
tried
"
:
1
,
"
tried
"
:
1
,
"
state
"
:
"
running
"
,
"
state
"
:
"
running
"
,
"
modified
"
:
new
Date
(
0
),
"
modified
"
:
new
Date
(),
"
max_retry
"
:
3
,
"
max_retry
"
:
3
,
"
timeout
"
:
10000
,
"
timeout
"
:
10000
,
"
id
"
:
2
"
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