提交 ac7d25c2 作者: 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
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论