提交 06c013bf 作者: Jeromy

cleanup and more testing

License: MIT
Signed-off-by: 's avatarJeromy <jeromyj@gmail.com>
上级 9e7e826b
...@@ -45,7 +45,7 @@ remains to be implemented. ...@@ -45,7 +45,7 @@ remains to be implemented.
Options: []cmds.Option{ Options: []cmds.Option{
cmds.OptionRecursivePath, // a builtin option that allows recursive paths (-r, --recursive) cmds.OptionRecursivePath, // a builtin option that allows recursive paths (-r, --recursive)
cmds.BoolOption(quietOptionName, "q", "Write minimal output"), cmds.BoolOption(quietOptionName, "q", "Write minimal output"),
cmds.BoolOption(silentOptionName, "x", "Write no output"), cmds.BoolOption(silentOptionName, "Write no output"),
cmds.BoolOption(progressOptionName, "p", "Stream progress data"), cmds.BoolOption(progressOptionName, "p", "Stream progress data"),
cmds.BoolOption(trickleOptionName, "t", "Use trickle-dag format for dag generation"), cmds.BoolOption(trickleOptionName, "t", "Use trickle-dag format for dag generation"),
cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk"), cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk"),
......
...@@ -89,7 +89,7 @@ func (bs *Bitswap) provideWorker(px process.Process) { ...@@ -89,7 +89,7 @@ func (bs *Bitswap) provideWorker(px process.Process) {
defer cancel() defer cancel()
if err := bs.network.Provide(ctx, k); err != nil { if err := bs.network.Provide(ctx, k); err != nil {
//log.Error(err) log.Error(err)
} }
} }
......
...@@ -317,7 +317,13 @@ test_files_api() { ...@@ -317,7 +317,13 @@ test_files_api() {
' '
test_expect_success "write 'no-flush' succeeds" ' test_expect_success "write 'no-flush' succeeds" '
echo "testing" | ipfs files write -f -e /cats/walrus echo "testing" | ipfs files write -f=false -e /cats/walrus
'
test_expect_success "root hash not bubbled up yet" '
test -z "$ONLINE" ||
(ipfs refs local > refsout &&
test_expect_code 1 grep QmcwKfTMCT7AaeiD92hWjnZn9b6eh9NxnhfSzN5x2vnDpt refsout)
' '
test_expect_success "changes bubbled up to root on inspection" ' test_expect_success "changes bubbled up to root on inspection" '
...@@ -350,7 +356,14 @@ test_files_api() { ...@@ -350,7 +356,14 @@ test_files_api() {
# test offline and online # test offline and online
test_files_api test_files_api
test_expect_success "clean up objects from previous test run" '
ipfs repo gc
'
test_launch_ipfs_daemon test_launch_ipfs_daemon
ONLINE=1 # set online flag so tests can easily tell
test_files_api test_files_api
test_kill_ipfs_daemon test_kill_ipfs_daemon
test_done test_done
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论