mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Fix the broken for loop including goroutine
Currently, all the funcs in the for loop are bound to the same testCase. Also remove extra newline from one expected message
This commit is contained in:
parent
08bee2cc84
commit
408b5dbf59
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user