mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 11:38:15 +00:00
make read from channel other than stdout non-fatal
This commit is contained in:
parent
456ebf5de7
commit
0639f1def6
@ -523,7 +523,13 @@ var _ = framework.KubeDescribe("Pods", func() {
|
||||
continue
|
||||
}
|
||||
if msg[0] != 1 {
|
||||
framework.Failf("Got message from server that didn't start with channel 1 (STDOUT): %v", msg)
|
||||
if len(msg) == 1 {
|
||||
// skip an empty message on stream other than stdout
|
||||
continue
|
||||
} else {
|
||||
framework.Failf("Got message from server that didn't start with channel 1 (STDOUT): %v", msg)
|
||||
}
|
||||
|
||||
}
|
||||
buf.Write(msg[1:])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user