@@ -26,7 +26,7 @@ func TestCopyFromContainerPathDoesNotExist(t *testing.T) {
2626
2727 ctx := context .Background ()
2828 apiclient := testEnv .APIClient ()
29- cid := container .Create (t , ctx , apiclient )
29+ cid := container .Create (ctx , t , apiclient )
3030
3131 _ , _ , err := apiclient .CopyFromContainer (ctx , cid , "/dne" )
3232 assert .Check (t , client .IsErrNotFound (err ))
@@ -40,7 +40,7 @@ func TestCopyFromContainerPathIsNotDir(t *testing.T) {
4040
4141 ctx := context .Background ()
4242 apiclient := testEnv .APIClient ()
43- cid := container .Create (t , ctx , apiclient )
43+ cid := container .Create (ctx , t , apiclient )
4444
4545 _ , _ , err := apiclient .CopyFromContainer (ctx , cid , "/etc/passwd/" )
4646 assert .Assert (t , is .ErrorContains (err , "not a directory" ))
@@ -52,7 +52,7 @@ func TestCopyToContainerPathDoesNotExist(t *testing.T) {
5252
5353 ctx := context .Background ()
5454 apiclient := testEnv .APIClient ()
55- cid := container .Create (t , ctx , apiclient )
55+ cid := container .Create (ctx , t , apiclient )
5656
5757 err := apiclient .CopyToContainer (ctx , cid , "/dne" , nil , types.CopyToContainerOptions {})
5858 assert .Check (t , client .IsErrNotFound (err ))
@@ -66,7 +66,7 @@ func TestCopyToContainerPathIsNotDir(t *testing.T) {
6666
6767 ctx := context .Background ()
6868 apiclient := testEnv .APIClient ()
69- cid := container .Create (t , ctx , apiclient )
69+ cid := container .Create (ctx , t , apiclient )
7070
7171 err := apiclient .CopyToContainer (ctx , cid , "/etc/passwd/" , nil , types.CopyToContainerOptions {})
7272 assert .Assert (t , is .ErrorContains (err , "not a directory" ))
@@ -105,7 +105,7 @@ func TestCopyFromContainer(t *testing.T) {
105105 assert .NilError (t , err )
106106 assert .Assert (t , imageID != "" )
107107
108- cid := container .Create (t , ctx , apiClient , container .WithImage (imageID ))
108+ cid := container .Create (ctx , t , apiClient , container .WithImage (imageID ))
109109
110110 for _ , x := range []struct {
111111 src string
0 commit comments