Skip to content

Commit

Permalink
Merge pull request #1423 from ipfs/test/only-hash
Browse files Browse the repository at this point in the history
add test for only-hash to ensure no blocks are added to datastore
  • Loading branch information
jbenet committed Jun 25, 2015
2 parents 0332f3d + 53dee3c commit ac7d25c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sharness/t0041-add-cat-offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ac7d25c

Please sign in to comment.