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
ac7d25c2
Commit
ac7d25c2
authored
9 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1423 from ipfs/test/only-hash
add test for only-hash to ensure no blocks are added to datastore
parents
0332f3db
53dee3c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
test/sharness/t0041-add-cat-offline.sh
test/sharness/t0041-add-cat-offline.sh
+8
-0
No files found.
test/sharness/t0041-add-cat-offline.sh
View file @
ac7d25c2
...
...
@@ -45,4 +45,12 @@ test_expect_success "output looks good" '
test_cmp afile out_2
'
test_expect_success
"ipfs add --only-hash succeeds"
'
echo "unknown content for only-hash" | ipfs add --only-hash -q > oh_hash
'
test_expect_success
"ipfs cat file fails"
'
test_must_fail ipfs cat $(cat oh_hash)
'
test_done
This diff is collapsed.
Click to expand it.
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