summaryrefslogtreecommitdiff
path: root/client/config_create_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/config_create_test.go')
-rw-r--r--client/config_create_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/config_create_test.go b/client/config_create_test.go
index 18b18b5401..c6a6eb5bec 100644
--- a/client/config_create_test.go
+++ b/client/config_create_test.go
@@ -32,9 +32,7 @@ func TestConfigCreateError(t *testing.T) {
client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")),
}
_, err := client.ConfigCreate(context.Background(), swarm.ConfigSpec{})
- 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 TestConfigCreate(t *testing.T) {