moby/testutil
Paweł Gronowski c6bf3071fe
StartWithLogFile: Fix d.cmd race
Use `exec.Command` created by this function instead of obtaining it from
daemon struct. This prevents a race condition where `daemon.Kill` is
called before the goroutine has the chance to call `cmd.Wait`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 88992de283)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-03-22 15:36:44 +01:00
..
daemon StartWithLogFile: Fix d.cmd race 2023-03-22 15:36:44 +01:00
environment integration-cli: TestEventsOOM* broken on GitHub Runner 2022-09-08 13:50:19 +02:00
fakecontext testutil: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
fakegit refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fakestorage refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
fixtures testutil: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
registry Remove uses of deprecated go-digest.NewDigestFromHex, go-digest.Digest.Hex 2022-12-09 00:17:18 +01:00
request refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
doc.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helper.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
helpers.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00
stringutils.go gosec: G404: Use of weak random number generator 2021-06-10 13:03:18 +02:00
stringutils_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00