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 | 				o.Prefix = true | ||||||
| 				return o | 				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", | 			name: "pod logs with prefix: init container", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot