Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
ad67f18d
Commit
ad67f18d
authored
Apr 26, 2015
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t0130: small improvements
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
cb6c7435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
test/sharness/t0130-multinode.sh
test/sharness/t0130-multinode.sh
+5
-4
No files found.
test/sharness/t0130-multinode.sh
View file @
ad67f18d
...
...
@@ -16,18 +16,19 @@ test_expect_success "set up a few nodes" '
'
test_expect_success
"add a file on node1"
'
export IPFS_PATH="$IPTB_ROOT/1"
export IPFS_PATH="$IPTB_ROOT/1"
&&
random 1000000 > filea &&
FILEA_HASH=
`
ipfs add -q filea
`
FILEA_HASH=
$(
ipfs add -q filea
)
'
test_expect_success
"cat that file on node2"
'
export IPFS_PATH="$IPTB_ROOT/2"
ipfs cat $FILEA_HASH
| multihash > actual1
export IPFS_PATH="$IPTB_ROOT/2"
&&
ipfs cat $FILEA_HASH
>fileb
'
test_expect_success
"verify files match"
'
multihash filea > expected1 &&
multihash fileb > actual1 &&
test_cmp actual1 expected1
'
...
...
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