Skip to content

Commit a309b57

Browse files
committed
refactor: use new expect.Contains to accept multiple args in logs test
Signed-off-by: Ruihua Wen <[email protected]>
1 parent c3f3ca0 commit a309b57

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cmd/nerdctl/container/container_logs_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,7 @@ func TestLogsWithDetails(t *testing.T) {
379379
return helpers.Command("logs", "--details", data.Identifier())
380380
}
381381

382-
testCase.Expected = test.Expects(0, nil, expect.All(
383-
expect.Contains("ENV=foo"),
384-
expect.Contains("LABEL=bar"),
385-
expect.Contains("baz"),
386-
))
382+
testCase.Expected = test.Expects(0, nil, expect.Contains("ENV=foo", "LABEL=bar", "baz"))
387383

388384
testCase.Run(t)
389385
}

0 commit comments

Comments
 (0)