Unverified Commit 708c1ae1 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #72793 from haiyanmeng/goroutine_inside_for_loop

Fix the broken for loop including goroutine
parents 14b2014c 408b5dbf
......@@ -172,7 +172,7 @@ while true; do sleep 1; done
TerminationMessagePolicy: v1.TerminationMessageFallbackToLogsOnError,
},
phase: v1.PodFailed,
message: Equal("DONE\n"),
message: Equal("DONE"),
},
{
......@@ -201,6 +201,7 @@ while true; do sleep 1; done
message: Equal("OK"),
},
} {
testCase := testCase
It(fmt.Sprintf("should report termination message %s", testCase.name), func() {
testCase.container.Name = "termination-message-container"
c := ConformanceContainer{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment