mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user