mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #51323 from thaJeztah/container_wait_nits
client: ContainerWait: touch-up GoDoc, and remove legacy code, and use singular for channels (ContainerWaitResult)
This commit is contained in:
@@ -823,9 +823,9 @@ func (s *DockerAPISuite) TestContainerAPIWait(c *testing.T) {
|
||||
wait := apiClient.ContainerWait(testutil.GetContext(c), name, client.ContainerWaitOptions{})
|
||||
|
||||
select {
|
||||
case err = <-wait.Errors:
|
||||
case err = <-wait.Error:
|
||||
assert.NilError(c, err)
|
||||
case waitRes := <-wait.Results:
|
||||
case waitRes := <-wait.Result:
|
||||
assert.Equal(c, waitRes.StatusCode, int64(0))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user