Skip to content

Commit

Permalink
fixed flaky test by splitting expected output string
Browse files Browse the repository at this point in the history
  • Loading branch information
srivastav-abhishek committed May 22, 2024
1 parent 5732a8b commit c66c8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ 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 c66c8a8

Please sign in to comment.