diff --git a/cmd/ipfs/daemon.go b/cmd/ipfs/daemon.go index 0b23d079d..122d26547 100644 --- a/cmd/ipfs/daemon.go +++ b/cmd/ipfs/daemon.go @@ -274,6 +274,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) { } } + fmt.Printf("Daemon is ready\n") // collect long-running errors and block for shutdown // TODO(cryptix): our fuse currently doesnt follow this pattern for graceful shutdown for err := range merge(apiErrc, gwErrc) { diff --git a/test/sharness/t0060-daemon.sh b/test/sharness/t0060-daemon.sh index 13a56fc1c..81f2f3c11 100755 --- a/test/sharness/t0060-daemon.sh +++ b/test/sharness/t0060-daemon.sh @@ -68,6 +68,7 @@ test_expect_success "ipfs daemon output looks good" ' cat local_addrs | sed "s/^/Swarm listening on /" >>expected_daemon && echo "API server listening on /ip4/127.0.0.1/tcp/5001" >>expected_daemon && echo "Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080" >>expected_daemon && + echo "Daemon is ready" >>expected_daemon && test_cmp expected_daemon actual_daemon '