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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
jio
Commits
8bc2040b
Commit
8bc2040b
authored
Aug 21, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicatestorage tests added
parent
b79b2458
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
test/jio.storage/replicatestorage.tests.js
test/jio.storage/replicatestorage.tests.js
+20
-3
No files found.
test/jio.storage/replicatestorage.tests.js
View file @
8bc2040b
...
@@ -19,18 +19,35 @@
...
@@ -19,18 +19,35 @@
module
(
"
ReplicateStorage
"
);
module
(
"
ReplicateStorage
"
);
test
(
"
Substorage management
"
,
function
()
{
test
(
"
Substorage management
"
,
function
()
{
expect
(
2
);
expect
(
3
);
var
clock
=
sinon
.
useFakeTimers
(),
jio
=
jIO
.
newJio
({
var
clock
=
sinon
.
useFakeTimers
(),
jio
=
jIO
.
newJio
({
"
type
"
:
"
replicate
"
,
"
type
"
:
"
replicate
"
,
"
storage_list
"
:
[{
"
storage_list
"
:
[{
"
type
"
:
"
dummy
"
"
type
"
:
"
dummy
"
},
{
},
{
"
type
"
:
"
dummy
"
,
"
type
"
:
"
dummy
"
"
mode
"
:
"
always fail
"
,
}]
}]
});
});
// post without id
// post without id
jio
.
post
({},
util
.
spyJioCallback
(
"
value
"
,
{
"
id
"
:
"
document id a
"
,
"
ok
"
:
true
},
"
2 Storages DONE + DONE = DONE
"
));
clock
.
tick
(
1000
);
util
.
closeAndcleanUpJio
(
jio
);
jio
=
jIO
.
newJio
({
"
type
"
:
"
replicate
"
,
"
storage_list
"
:
[{
"
type
"
:
"
dummy
"
},
{
"
type
"
:
"
dummy
"
,
"
mode
"
:
"
always fail
"
}]
});
jio
.
post
({},
util
.
spyJioCallback
(
"
value
"
,
{
jio
.
post
({},
util
.
spyJioCallback
(
"
value
"
,
{
"
id
"
:
"
document id a
"
,
"
id
"
:
"
document id a
"
,
"
ok
"
:
true
"
ok
"
:
true
...
...
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