mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Avoid unwanted warnings from destroy() in TestStart()
This commit is contained in:
parent
8cf30395a1
commit
cda9cf1539
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ func TestStart(t *testing.T) {
|
|||
// Try to avoid the timeoout in destroy. Best effort, don't check error
|
||||
cStdin, _ := container.StdinPipe()
|
||||
cStdin.Close()
|
||||
container.WaitTimeout(500 * time.Millisecond)
|
||||
container.State.setStopped(0)
|
||||
}
|
||||
|
||||
func TestRun(t *testing.T) {
|
||||
|
|
Loading…
Reference in a new issue