mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-05 00:08:06 +08:00
Notify when daemon is ready
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
parent
ace06b47d1
commit
35ab1e347b
@ -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) {
|
||||
|
||||
@ -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
|
||||
'
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user