summaryrefslogtreecommitdiff
path: root/client/plugin_enable_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/plugin_enable_test.go')
-rw-r--r--client/plugin_enable_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/plugin_enable_test.go b/client/plugin_enable_test.go
index c7f7a1be7b..645753fae8 100644
--- a/client/plugin_enable_test.go
+++ b/client/plugin_enable_test.go
@@ -11,6 +11,8 @@ import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/errdefs"
+ "gotest.tools/v3/assert"
+ is "gotest.tools/v3/assert/cmp"
)
func TestPluginEnableError(t *testing.T) {
@@ -19,9 +21,7 @@ func TestPluginEnableError(t *testing.T) {
}
err := client.PluginEnable(context.Background(), "plugin_name", types.PluginEnableOptions{})
- 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 TestPluginEnable(t *testing.T) {