From 3e2dd947f00416ae121d298ca79ee82bae022fa4 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 11 Dec 2023 11:36:50 +0100 Subject: [PATCH] fix: test --- test/cli/daemon_test.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/cli/daemon_test.go b/test/cli/daemon_test.go index 2d59c99da03..7a8c583a261 100644 --- a/test/cli/daemon_test.go +++ b/test/cli/daemon_test.go @@ -1,6 +1,7 @@ package cli import ( + "os/exec" "testing" "github.com/ipfs/kubo/test/cli/harness" @@ -12,7 +13,13 @@ func TestDaemon(t *testing.T) { t.Run("daemon starts if api is set to null", func(t *testing.T) { t.Parallel() node := harness.NewT(t).NewNode().Init() - node.SetIPFSConfig("API", nil) - node.IPFS("daemon") // can't use .StartDaemon because it do a .WaitOnAPI + node.SetIPFSConfig("Addresses.API", nil) + node.Runner.MustRun(harness.RunRequest{ + Path: node.IPFSBin, + Args: []string{"daemon"}, + RunFunc: (*exec.Cmd).Start, // Start without waiting for completion. + }) + + node.StopDaemon() }) }