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
Labels
Merge Requests
18
Merge Requests
18
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
jio
Commits
8abcfa83
Commit
8abcfa83
authored
Jul 19, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReplicateStorage: fix attachment tests
allAttachments was supposed to return no result in some tests.
parent
13d437bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
test/jio.storage/replicatestorage_repairattachment.tests.js
test/jio.storage/replicatestorage_repairattachment.tests.js
+25
-7
No files found.
test/jio.storage/replicatestorage_repairattachment.tests.js
View file @
8abcfa83
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
this
.
_sub_storage
=
jIO
.
createJIO
(
spec
.
sub_storage
);
this
.
_sub_storage
=
jIO
.
createJIO
(
spec
.
sub_storage
);
return
this
;
return
this
;
}
}
jIO
.
addStorage
(
'
signaturestorageallattachments
'
,
StorageEmptyAllAttachments
);
jIO
.
addStorage
(
'
signaturestorageemptyallattachments
'
,
StorageEmptyAllAttachments
);
StorageEmptyAllAttachments
.
prototype
.
allAttachments
=
function
()
{
StorageEmptyAllAttachments
.
prototype
.
allAttachments
=
function
()
{
return
this
.
_sub_storage
.
allAttachments
.
apply
(
this
.
_sub_storage
,
return
{};
arguments
);
};
};
StorageEmptyAllAttachments
.
prototype
.
getAttachment
=
function
()
{
StorageEmptyAllAttachments
.
prototype
.
getAttachment
=
function
()
{
return
this
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
return
this
.
_sub_storage
.
getAttachment
.
apply
(
this
.
_sub_storage
,
...
@@ -652,7 +652,7 @@
...
@@ -652,7 +652,7 @@
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
uuid
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
signaturestorageallattachments
"
,
type
:
"
signaturestorage
empty
allattachments
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
...
@@ -663,6 +663,15 @@
...
@@ -663,6 +663,15 @@
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
},
signature_sub_storage
:
{
type
:
"
uuid
"
,
sub_storage
:
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
memory
"
}
}
}
}
});
});
...
@@ -738,7 +747,7 @@
...
@@ -738,7 +747,7 @@
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
uuid
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
signaturestorageallattachments
"
,
type
:
"
signaturestorage
empty
allattachments
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
...
@@ -888,7 +897,7 @@
...
@@ -888,7 +897,7 @@
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
uuid
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
signaturestorageallattachments
"
,
type
:
"
signaturestorage
empty
allattachments
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
...
@@ -899,6 +908,15 @@
...
@@ -899,6 +908,15 @@
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
},
signature_sub_storage
:
{
type
:
"
uuid
"
,
sub_storage
:
{
type
:
"
query
"
,
sub_storage
:
{
type
:
"
memory
"
}
}
}
}
});
});
...
@@ -974,7 +992,7 @@
...
@@ -974,7 +992,7 @@
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
uuid
"
,
type
:
"
uuid
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
signaturestorageallattachments
"
,
type
:
"
signaturestorage
empty
allattachments
"
,
sub_storage
:
{
sub_storage
:
{
type
:
"
memory
"
type
:
"
memory
"
}
}
...
...
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