@@ -24,12 +24,10 @@ import (
24
24
"github.com/golang/mock/gomock"
25
25
"gotest.tools/v3/assert"
26
26
27
- moby "github.com/docker/docker/api/types"
28
- "github.com/docker/docker/api/types/filters"
29
- "github.com/docker/docker/api/types/volume"
30
-
31
27
compose "github.com/docker/compose/v2/pkg/api"
32
28
"github.com/docker/compose/v2/pkg/mocks"
29
+ moby "github.com/docker/docker/api/types"
30
+ "github.com/docker/docker/api/types/filters"
33
31
)
34
32
35
33
func TestPs (t * testing.T ) {
@@ -51,8 +49,6 @@ func TestPs(t *testing.T) {
51
49
c2 , inspect2 := containerDetails ("service1" , "456" , "running" , "" , 0 )
52
50
c2 .Ports = []moby.Port {{PublicPort : 80 , PrivatePort : 90 , IP : "localhost" }}
53
51
c3 , inspect3 := containerDetails ("service2" , "789" , "exited" , "" , 130 )
54
- api .EXPECT ().VolumeList (ctx , gomock .Any ()).Return (volume.ListResponse {}, nil )
55
- api .EXPECT ().NetworkList (ctx , gomock .Any ()).Return ([]moby.NetworkResource {}, nil )
56
52
api .EXPECT ().ContainerList (ctx , listOpts ).Return ([]moby.Container {c1 , c2 , c3 }, nil )
57
53
api .EXPECT ().ContainerInspect (anyCancellableContext (), "123" ).Return (inspect1 , nil )
58
54
api .EXPECT ().ContainerInspect (anyCancellableContext (), "456" ).Return (inspect2 , nil )
0 commit comments