1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-30 01:52:26 +08:00

Merge pull request #1423 from ipfs/test/only-hash

add test for only-hash to ensure no blocks are added to datastore
This commit is contained in:
Juan Batiz-Benet
2015-06-25 14:07:03 -07:00

View File

@ -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