Commit ac7d25c2 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

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
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment