Skip to content

Commit a271d8b

Browse files
refactor: use explicit ExitCode constant in test.Expected struct
Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
1 parent 3806454 commit a271d8b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/nerdctl/container/container_create_linux_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ func TestCreateWithTty(t *testing.T) {
301301
},
302302
Expected: func(data test.Data, helpers test.Helpers) *test.Expected {
303303
return &test.Expected{
304-
Output: expect.Contains("speed 38400 baud; line = 0;"),
304+
ExitCode: expect.ExitCodeSuccess,
305+
Output: expect.Contains("speed 38400 baud; line = 0;"),
305306
}
306307
},
307308
},

0 commit comments

Comments
 (0)