diff options
Diffstat (limited to 'client/volume_list_test.go')
-rw-r--r-- | client/volume_list_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/volume_list_test.go b/client/volume_list_test.go index bf20434d54..d393f7d1de 100644 --- a/client/volume_list_test.go +++ b/client/volume_list_test.go @@ -13,6 +13,8 @@ import ( "github.com/docker/docker/api/types/filters" "github.com/docker/docker/api/types/volume" "github.com/docker/docker/errdefs" + "gotest.tools/v3/assert" + is "gotest.tools/v3/assert/cmp" ) func TestVolumeListError(t *testing.T) { @@ -21,9 +23,7 @@ func TestVolumeListError(t *testing.T) { } _, err := client.VolumeList(context.Background(), volume.ListOptions{}) - 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 TestVolumeList(t *testing.T) { |