aa956246247a51f0bd07d50556024d5df3f43253
`TestDaemonDiscoveryBackendConfigReload` was doing some wierd things with files, creating a file (directly in `./integration-cli`), removing it, then creating a new file. This is just weird, so fixed it to use a single file, file will go into a temp dir so it doesn't pollute integration-cli. It was also blindly sending a SIGHUP to the daemon process then sleeping for 3 seconds. This is racey, and slow. Change this to look for the daemon-reload event in the event stream. Reload logic is moved to a separate function and blocks (w/ a timeout) waiting for the reload event to fire. Runtime of the test is now ~0.5s on my machine, where as it was a minimum of 3s due to the `time.Sleep` before. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: 20f99a8634accf54a923982f8c9a3b6719933f74 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%