Merge pull request #125049 from srivastav-abhishek/flake-fix-logs-test

fixed flaky test TestLog/stateful_set_logs_with_all_pods by splitting expected output string
This commit is contained in:
Kubernetes Prow Robot
2024-05-22 09:11:30 -07:00
committed by GitHub

View File

@@ -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",