Browse Source

Skip TestInfoAPIWarnings on remote daemons

This test starts a new daemon, which will fail when testing
against a remote daemon;

    --- FAIL: TestInfoAPIWarnings (0.00s)
        info_test.go:53: failed to start daemon with arguments [-H=0.0.0.0:23756 -H=unix:///tmp/docker-integration/d5153ebcf89ef.sock] : [d5153ebcf89ef] could not find docker binary in $PATH: exec: "dockerd": executable file not found in $PATH

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 years ago
parent
commit
056840c2a6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      integration/system/info_test.go

+ 1 - 0
integration/system/info_test.go

@@ -44,6 +44,7 @@ func TestInfoAPI(t *testing.T) {
 }
 }
 
 
 func TestInfoAPIWarnings(t *testing.T) {
 func TestInfoAPIWarnings(t *testing.T) {
+	skip.If(t, testEnv.IsRemoteDaemon, "cannot run daemon when remote daemon")
 	skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME")
 	skip.If(t, testEnv.DaemonInfo.OSType == "windows", "FIXME")
 	d := daemon.New(t)
 	d := daemon.New(t)