Skip to content

Commit 87a976d

Browse files
committed
test: add delay to ensure logs are available before following
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
1 parent 3c376a8 commit 87a976d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/nerdctl/container/container_logs_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ func TestLogsFollowNoExtraneousLineFeed(t *testing.T) {
413413
testCase.Command = func(data test.Data, helpers test.Helpers) test.TestableCommand {
414414
// Use logs -f to follow the logs
415415
// The container will exit after 5 seconds, so we don't need an explicit timeout
416+
// Arbitrary, but we need to wait until the logs show up
417+
time.Sleep(3 * time.Second)
416418
return helpers.Command("logs", "-f", data.Identifier())
417419
}
418420

0 commit comments

Comments
 (0)