@@ -10,7 +10,6 @@ import (
1010 "strings"
1111 "testing"
1212
13- "github.com/docker/docker/api/types"
1413 "github.com/docker/docker/api/types/filters"
1514 "github.com/docker/docker/api/types/swarm"
1615 "github.com/docker/docker/errdefs"
@@ -23,25 +22,25 @@ func TestTaskListError(t *testing.T) {
2322 client : newMockClient (errorMock (http .StatusInternalServerError , "Server error" )),
2423 }
2524
26- _ , err := client .TaskList (context .Background (), types .TaskListOptions {})
25+ _ , err := client .TaskList (context .Background (), swarm .TaskListOptions {})
2726 assert .Check (t , is .ErrorType (err , errdefs .IsSystem ))
2827}
2928
3029func TestTaskList (t * testing.T ) {
3130 const expectedURL = "/tasks"
3231
3332 listCases := []struct {
34- options types .TaskListOptions
33+ options swarm .TaskListOptions
3534 expectedQueryParams map [string ]string
3635 }{
3736 {
38- options : types .TaskListOptions {},
37+ options : swarm .TaskListOptions {},
3938 expectedQueryParams : map [string ]string {
4039 "filters" : "" ,
4140 },
4241 },
4342 {
44- options : types .TaskListOptions {
43+ options : swarm .TaskListOptions {
4544 Filters : filters .NewArgs (
4645 filters .Arg ("label" , "label1" ),
4746 filters .Arg ("label" , "label2" ),
0 commit comments