@@ -64,7 +64,7 @@ func TestAttach(t *testing.T) {
6464 cmd .Run (& test.Expected {
6565 ExitCode : 0 ,
6666 Errors : []error {errors .New ("read detach keys" )},
67- Output : func (stdout string , info string , t * testing.T ) {
67+ Output : func (stdout string , t * testing.T ) {
6868 assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
6969 },
7070 })
@@ -93,7 +93,7 @@ func TestAttach(t *testing.T) {
9393 Errors : []error {errors .New ("read detach keys" )},
9494 Output : expect .All (
9595 expect .Contains ("markmark" ),
96- func (stdout string , info string , t * testing.T ) {
96+ func (stdout string , t * testing.T ) {
9797 assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
9898 },
9999 ),
@@ -125,7 +125,7 @@ func TestAttachDetachKeys(t *testing.T) {
125125 cmd .Run (& test.Expected {
126126 ExitCode : 0 ,
127127 Errors : []error {errors .New ("read detach keys" )},
128- Output : func (stdout string , info string , t * testing.T ) {
128+ Output : func (stdout string , t * testing.T ) {
129129 assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
130130 },
131131 })
@@ -153,7 +153,7 @@ func TestAttachDetachKeys(t *testing.T) {
153153 Errors : []error {errors .New ("read detach keys" )},
154154 Output : expect .All (
155155 expect .Contains ("markmark" ),
156- func (stdout string , info string , t * testing.T ) {
156+ func (stdout string , t * testing.T ) {
157157 assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
158158 },
159159 ),
@@ -182,8 +182,8 @@ func TestAttachForAutoRemovedContainer(t *testing.T) {
182182 cmd .Run (& test.Expected {
183183 ExitCode : 0 ,
184184 Errors : []error {errors .New ("read detach keys" )},
185- Output : func (stdout string , info string , t * testing.T ) {
186- assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ), info )
185+ Output : func (stdout string , t * testing.T ) {
186+ assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
187187 },
188188 })
189189 }
@@ -202,7 +202,7 @@ func TestAttachForAutoRemovedContainer(t *testing.T) {
202202 ExitCode : 42 ,
203203 Output : expect .All (
204204 expect .Contains ("markmark" ),
205- func (stdout string , info string , t * testing.T ) {
205+ func (stdout string , t * testing.T ) {
206206 assert .Assert (t , ! strings .Contains (helpers .Capture ("ps" , "-a" ), data .Identifier ()))
207207 },
208208 ),
@@ -226,7 +226,7 @@ func TestAttachNoStdin(t *testing.T) {
226226 cmd .Feed (bytes .NewReader ([]byte {16 , 17 })) // Ctrl-p, Ctrl-q to detach (https://en.wikipedia.org/wiki/C0_and_C1_control_codes)
227227 cmd .Run (& test.Expected {
228228 ExitCode : 0 ,
229- Output : func (stdout string , info string , t * testing.T ) {
229+ Output : func (stdout string , t * testing.T ) {
230230 assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "{{.State.Running}}" , data .Identifier ()), "true" ))
231231 },
232232 })
@@ -243,7 +243,7 @@ func TestAttachNoStdin(t *testing.T) {
243243 testCase .Expected = func (data test.Data , helpers test.Helpers ) * test.Expected {
244244 return & test.Expected {
245245 ExitCode : 0 , // Since it's a normal exit and not detach.
246- Output : func (stdout string , info string , t * testing.T ) {
246+ Output : func (stdout string , t * testing.T ) {
247247 logs := helpers .Capture ("logs" , data .Identifier ())
248248 assert .Assert (t , ! strings .Contains (logs , "should-not-appear" ))
249249 },
0 commit comments