@@ -28,6 +28,7 @@ import (
28
28
29
29
"github.com/containerd/nerdctl/mod/tigron/expect"
30
30
"github.com/containerd/nerdctl/mod/tigron/test"
31
+ "github.com/containerd/nerdctl/mod/tigron/tig"
31
32
32
33
"github.com/containerd/nerdctl/v2/pkg/testutil"
33
34
"github.com/containerd/nerdctl/v2/pkg/testutil/nerdtest"
@@ -64,7 +65,7 @@ func TestAttach(t *testing.T) {
64
65
cmd .Run (& test.Expected {
65
66
ExitCode : 0 ,
66
67
Errors : []error {errors .New ("read detach keys" )},
67
- Output : func (stdout string , t * testing .T ) {
68
+ Output : func (stdout string , t tig .T ) {
68
69
assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
69
70
},
70
71
})
@@ -93,7 +94,7 @@ func TestAttach(t *testing.T) {
93
94
Errors : []error {errors .New ("read detach keys" )},
94
95
Output : expect .All (
95
96
expect .Contains ("markmark" ),
96
- func (stdout string , t * testing .T ) {
97
+ func (stdout string , t tig .T ) {
97
98
assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
98
99
},
99
100
),
@@ -125,7 +126,7 @@ func TestAttachDetachKeys(t *testing.T) {
125
126
cmd .Run (& test.Expected {
126
127
ExitCode : 0 ,
127
128
Errors : []error {errors .New ("read detach keys" )},
128
- Output : func (stdout string , t * testing .T ) {
129
+ Output : func (stdout string , t tig .T ) {
129
130
assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
130
131
},
131
132
})
@@ -153,7 +154,7 @@ func TestAttachDetachKeys(t *testing.T) {
153
154
Errors : []error {errors .New ("read detach keys" )},
154
155
Output : expect .All (
155
156
expect .Contains ("markmark" ),
156
- func (stdout string , t * testing .T ) {
157
+ func (stdout string , t tig .T ) {
157
158
assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
158
159
},
159
160
),
@@ -182,7 +183,7 @@ func TestAttachForAutoRemovedContainer(t *testing.T) {
182
183
cmd .Run (& test.Expected {
183
184
ExitCode : 0 ,
184
185
Errors : []error {errors .New ("read detach keys" )},
185
- Output : func (stdout string , t * testing .T ) {
186
+ Output : func (stdout string , t tig .T ) {
186
187
assert .Assert (t , strings .Contains (helpers .Capture ("inspect" , "--format" , "json" , data .Identifier ()), "\" Running\" :true" ))
187
188
},
188
189
})
@@ -202,7 +203,7 @@ func TestAttachForAutoRemovedContainer(t *testing.T) {
202
203
ExitCode : 42 ,
203
204
Output : expect .All (
204
205
expect .Contains ("markmark" ),
205
- func (stdout string , t * testing .T ) {
206
+ func (stdout string , t tig .T ) {
206
207
assert .Assert (t , ! strings .Contains (helpers .Capture ("ps" , "-a" ), data .Identifier ()))
207
208
},
208
209
),
0 commit comments