mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 19:24:14 +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:
@ -45,4 +45,12 @@ test_expect_success "output looks good" '
|
|||||||
test_cmp afile out_2
|
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
|
test_done
|
||||||
|
Reference in New Issue
Block a user