зеркало из https://github.com/microsoft/docker.git
Avoid unwanted warnings from destroy() in TestStart()
This commit is contained in:
Родитель
8cf30395a1
Коммит
cda9cf1539
|
@ -267,6 +267,8 @@ func TestStart(t *testing.T) {
|
||||||
// Try to avoid the timeoout in destroy. Best effort, don't check error
|
// Try to avoid the timeoout in destroy. Best effort, don't check error
|
||||||
cStdin, _ := container.StdinPipe()
|
cStdin, _ := container.StdinPipe()
|
||||||
cStdin.Close()
|
cStdin.Close()
|
||||||
|
container.WaitTimeout(500 * time.Millisecond)
|
||||||
|
container.State.setStopped(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRun(t *testing.T) {
|
func TestRun(t *testing.T) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче