Skip to content

Commit

Permalink
Merge pull request #125049 from srivastav-abhishek/flake-fix-logs-test
Browse files Browse the repository at this point in the history
fixed flaky test TestLog/stateful_set_logs_with_all_pods by splitting expected output string
  • Loading branch information
k8s-ci-robot committed May 22, 2024
2 parents 74d5784 + 5de6f7c commit 84a7f1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/logs/logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,10 @@ func TestLog(t *testing.T) {
o.Prefix = true
return o
},
expectedOutSubstrings: []string{"[pod/test-sts-0/test-container] test log content for pod test-sts-0\n[pod/test-sts-1/test-container] test log content for pod test-sts-1\n"},
expectedOutSubstrings: []string{
"[pod/test-sts-0/test-container] test log content for pod test-sts-0\n",
"[pod/test-sts-1/test-container] test log content for pod test-sts-1\n",
},
},
{
name: "pod logs with prefix: init container",
Expand Down

0 comments on commit 84a7f1e

Please sign in to comment.