summaryrefslogtreecommitdiff
path: root/client/container_update_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/container_update_test.go')
-rw-r--r--client/container_update_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/container_update_test.go b/client/container_update_test.go
index 83ae098be0..10dc1ed633 100644
--- a/client/container_update_test.go
+++ b/client/container_update_test.go
@@ -12,6 +12,8 @@ import (
"github.com/docker/docker/api/types/container"
"github.com/docker/docker/errdefs"
+ "gotest.tools/v3/assert"
+ is "gotest.tools/v3/assert/cmp"
)
func TestContainerUpdateError(t *testing.T) {
@@ -19,9 +21,7 @@ func TestContainerUpdateError(t *testing.T) {
client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")),
}
_, err := client.ContainerUpdate(context.Background(), "nothing", container.UpdateConfig{})
- if !errdefs.IsSystem(err) {
- t.Fatalf("expected a Server Error, got %[1]T: %[1]v", err)
- }
+ assert.Check(t, is.ErrorType(err, errdefs.IsSystem))
}
func TestContainerUpdate(t *testing.T) {