@@ -47,7 +47,7 @@ func TestContainerStartOnDaemonRestart(t *testing.T) {
4747 c := d .NewClientT (t )
4848
4949 cID := container .Create (ctx , t , c )
50- defer c .ContainerRemove (ctx , cID , types. ContainerRemoveOptions {Force : true })
50+ defer c .ContainerRemove (ctx , cID , containertypes. RemoveOptions {Force : true })
5151
5252 err := c .ContainerStart (ctx , cID , types.ContainerStartOptions {})
5353 assert .Check (t , err , "error starting test container" )
@@ -105,7 +105,7 @@ func TestDaemonRestartIpcMode(t *testing.T) {
105105 container .WithCmd ("top" ),
106106 container .WithRestartPolicy (containertypes .RestartPolicyAlways ),
107107 )
108- defer c .ContainerRemove (ctx , cID , types. ContainerRemoveOptions {Force : true })
108+ defer c .ContainerRemove (ctx , cID , containertypes. RemoveOptions {Force : true })
109109
110110 inspect , err := c .ContainerInspect (ctx , cID )
111111 assert .NilError (t , err )
@@ -121,7 +121,7 @@ func TestDaemonRestartIpcMode(t *testing.T) {
121121
122122 // check a new container is created with shareable ipc mode as per new daemon default
123123 cID = container .Run (ctx , t , c )
124- defer c .ContainerRemove (ctx , cID , types. ContainerRemoveOptions {Force : true })
124+ defer c .ContainerRemove (ctx , cID , containertypes. RemoveOptions {Force : true })
125125
126126 inspect , err = c .ContainerInspect (ctx , cID )
127127 assert .NilError (t , err )
@@ -156,7 +156,7 @@ func TestDaemonHostGatewayIP(t *testing.T) {
156156 inspect , err := c .NetworkInspect (ctx , "bridge" , types.NetworkInspectOptions {})
157157 assert .NilError (t , err )
158158 assert .Check (t , is .Contains (res .Stdout (), inspect .IPAM .Config [0 ].Gateway ))
159- c .ContainerRemove (ctx , cID , types. ContainerRemoveOptions {Force : true })
159+ c .ContainerRemove (ctx , cID , containertypes. RemoveOptions {Force : true })
160160 d .Stop (t )
161161
162162 // Verify the IP in /etc/hosts is same as host-gateway-ip
@@ -169,7 +169,7 @@ func TestDaemonHostGatewayIP(t *testing.T) {
169169 assert .Assert (t , is .Len (res .Stderr (), 0 ))
170170 assert .Equal (t , 0 , res .ExitCode )
171171 assert .Check (t , is .Contains (res .Stdout (), "6.7.8.9" ))
172- c .ContainerRemove (ctx , cID , types. ContainerRemoveOptions {Force : true })
172+ c .ContainerRemove (ctx , cID , containertypes. RemoveOptions {Force : true })
173173 d .Stop (t )
174174}
175175
0 commit comments