Skip to content

Commit da0a680

Browse files
committed
Fix/enhance IPFS tests
Signed-off-by: apostasie <[email protected]>
1 parent 2275c4e commit da0a680

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/nerdctl/ipfs_linux_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ func runIPFSDaemonContainer(t *testing.T, base *testutil.Base) (ipfsAddress stri
9999
time.Sleep(1 * time.Second)
100100
_, err = nettestutil.HTTPGet(fmt.Sprintf("http://%s/api/v0", addrTest), 30, true)
101101
}
102+
if err != nil {
103+
fmt.Println("Something is wrong with ipfs communication")
104+
res := base.Cmd("inspect", name).Run()
105+
fmt.Println(res)
106+
res = base.Cmd("logs", name).Run()
107+
fmt.Println(res)
108+
}
102109
assert.NilError(t, err)
103110

104111
return ipfsaddr, func() {

0 commit comments

Comments
 (0)