Merge pull request #3935 from brendandburns/shell_sucks

Put watch in a loop so that we grab all event logs, even if the watch hangs up.
This commit is contained in:
Satnam Singh 2015-01-29 10:53:19 -08:00
commit 0dcf1cea4a

View File

@ -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!")