Skip to content
Snippets Groups Projects
Commit 06c013bf authored by Jeromy Johnson's avatar Jeromy Johnson
Browse files

cleanup and more testing


License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent 9e7e826b
Branches
No related tags found
1 merge request!1New
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment