diff --git a/cmd/nerdctl/container_logs_test.go b/cmd/nerdctl/container_logs_test.go index 944b48486d2..76882ef650c 100644 --- a/cmd/nerdctl/container_logs_test.go +++ b/cmd/nerdctl/container_logs_test.go @@ -209,7 +209,7 @@ func TestLogsWithForegroundContainers(t *testing.T) { } func TestTailFollowRotateLogs(t *testing.T) { - // FIXME this is flaky by nature... 5 lines is arbitrary, 2000 ms is arbitrary, and both are some sort of educated + // FIXME this is flaky by nature... 2 lines is arbitrary, 5000 ms is arbitrary, and both are some sort of educated // guess that things will mostly always kinda work maybe... // Furthermore, parallelizing will put pressure on the daemon which might be even slower in answering, increasing // the risk of transient failure. @@ -232,7 +232,7 @@ func TestTailFollowRotateLogs(t *testing.T) { "sh", "-euc", "while true; do echo A; done").AssertOK() tailLogCmd := base.Cmd("logs", "-f", containerName) - tailLogCmd.Timeout = 2000 * time.Millisecond + tailLogCmd.Timeout = 10000 * time.Millisecond tailLogs := strings.Split(strings.TrimSpace(tailLogCmd.Run().Stdout()), "\n") for _, line := range tailLogs { if line != "" {