From 014cecda464fb1171e613676e0a8a85c02ec1674 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Wed, 13 Sep 2017 17:00:55 -0400 Subject: [PATCH] Only attempt to find pid with local daemon Signed-off-by: Daniel Nephin --- integration-cli/check_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integration-cli/check_test.go b/integration-cli/check_test.go index 87517e7db7..7f9a6f272a 100644 --- a/integration-cli/check_test.go +++ b/integration-cli/check_test.go @@ -79,6 +79,9 @@ type DockerSuite struct { } func (s *DockerSuite) OnTimeout(c *check.C) { + if !testEnv.IsLocalDaemon() { + return + } path := filepath.Join(os.Getenv("DEST"), "docker.pid") b, err := ioutil.ReadFile(path) if err != nil { @@ -91,7 +94,7 @@ func (s *DockerSuite) OnTimeout(c *check.C) { } daemonPid := int(rawPid) - if daemonPid > 0 && testEnv.IsLocalDaemon() { + if daemonPid > 0 { daemon.SignalDaemonDump(daemonPid) } }