1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #20963 from tophj-ibm/properly-close-test-file

Properly close and remove file in daemon test
This commit is contained in:
Doug Davis 2016-03-04 16:27:07 -05:00
commit 45865bc4f5

View file

@ -2170,7 +2170,9 @@ func (s *DockerSuite) TestDaemonDiscoveryBackendConfigReload(c *check.C) {
configFile, err = os.Create(configFilePath)
c.Assert(err, checker.IsNil)
defer os.Remove(configFilePath)
fmt.Fprintf(configFile, "%s", daemonConfig)
configFile.Close()
syscall.Kill(d.cmd.Process.Pid, syscall.SIGHUP)