Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Dec 11, 2023
1 parent 351d27f commit 3e2dd94
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/cli/daemon_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"os/exec"
"testing"

"github.com/ipfs/kubo/test/cli/harness"
Expand All @@ -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()
})
}

0 comments on commit 3e2dd94

Please sign in to comment.