mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Use errdefs for handling errors in client
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -121,6 +121,7 @@ func TestCopyToContainerNotFoundError(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO TestCopyToContainerNotStatusOKError expects a non-error status-code ("204 No Content") to produce an error; verify if this is the desired behavior
|
||||
func TestCopyToContainerNotStatusOKError(t *testing.T) {
|
||||
client := &Client{
|
||||
client: newMockClient(errorMock(http.StatusNoContent, "No content")),
|
||||
@@ -200,6 +201,7 @@ func TestCopyFromContainerNotFoundError(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO TestCopyFromContainerNotStatusOKError expects a non-error status-code ("204 No Content") to produce an error; verify if this is the desired behavior
|
||||
func TestCopyFromContainerNotStatusOKError(t *testing.T) {
|
||||
client := &Client{
|
||||
client: newMockClient(errorMock(http.StatusNoContent, "No content")),
|
||||
|
||||
Reference in New Issue
Block a user