|
_, rc, err := request.Post(fmt.Sprintf("/exec/%s/resize?h=24&w=80", execID), request.ContentType("text/plain")) |
|
// It's probably a panic of the daemon if io.ErrUnexpectedEOF is returned. |
|
if err == io.ErrUnexpectedEOF { |
|
return fmt.Errorf("The daemon might have crashed.") |
|
} |
|
|
|
if err == nil { |
|
rc.Close() |
|
} |
|
|
|
// We only interested in the io.ErrUnexpectedEOF error, so we return nil otherwise. |
|
return nil |
This test should be rewritten to test the success case of resize after start, instead of a specific regression that is unlikely to happen ever again.
moby/integration-cli/docker_api_exec_resize_test.go
Lines 68 to 79 in 733ed2d
This test should be rewritten to test the success case of resize after start, instead of a specific regression that is unlikely to happen ever again.