mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Put watch in a loop so that we grab all event logs, even if the watch hangs up.
This commit is contained in:
parent
ca6de16df7
commit
0ad036e0eb
@ -279,7 +279,7 @@ func shuffleStrings(strings []string, r *rand.Rand) {
|
||||
}
|
||||
|
||||
func Test() (results ResultsByTest) {
|
||||
defer runBashUntil("watchEvents", "$KUBECTL --watch-only get events")()
|
||||
defer runBashUntil("watchEvents", "while true; do $KUBECTL --watch-only get events; done")()
|
||||
|
||||
if !IsUp() {
|
||||
log.Fatal("Testing requested, but e2e cluster not up!")
|
||||
|
Loading…
Reference in New Issue
Block a user