Merge pull request #72793 from haiyanmeng/goroutine_inside_for_loop

Fix the broken for loop including goroutine
pull/564/head
Kubernetes Prow Robot 2019-01-15 10:35:21 -08:00 committed by GitHub
commit 708c1ae161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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{