mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client/task_list_test: use containerd errdefs checks
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
6cd9eaf5ab
commit
144363fea2
@@ -10,9 +10,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
cerrdefs "github.com/containerd/errdefs"
|
||||
"github.com/docker/docker/api/types/filters"
|
||||
"github.com/docker/docker/api/types/swarm"
|
||||
"github.com/docker/docker/errdefs"
|
||||
"gotest.tools/v3/assert"
|
||||
is "gotest.tools/v3/assert/cmp"
|
||||
)
|
||||
@@ -23,7 +23,7 @@ func TestTaskListError(t *testing.T) {
|
||||
}
|
||||
|
||||
_, err := client.TaskList(context.Background(), swarm.TaskListOptions{})
|
||||
assert.Check(t, is.ErrorType(err, errdefs.IsSystem))
|
||||
assert.Check(t, is.ErrorType(err, cerrdefs.IsInternal))
|
||||
}
|
||||
|
||||
func TestTaskList(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user