提交 1358b282 作者: Steven Allen

add sharness for trickle importer

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 19caad23
......@@ -124,6 +124,12 @@ test_expect_success "get large file via urlstore" '
test_cmp file3 file3.actual
'
test_expect_success "check that the trickle option works" '
HASHat=$(ipfs add -q --cid-version=1 --raw-leaves=true -n --trickle file3) &&
HASHut=$(ipfs urlstore add --trickle http://127.0.0.1:$GWAY_PORT/ipfs/$HASH3a) &&
test $HASHat = $HASHut
'
test_kill_ipfs_daemon
test_expect_success "files can not be retrieved via the urlstore" '
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论