mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 18:31:15 +00:00
Merge pull request #93658 from dcbw/csi-fail-test-on-close
test/e2e: fail test rather than flooding logs if PVC watch is closed prematurely
This commit is contained in:
commit
56c76023f7
@ -892,7 +892,11 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
|
||||
loop:
|
||||
for {
|
||||
select {
|
||||
case event := <-pvcWatch.ResultChan():
|
||||
case event, ok := <-pvcWatch.ResultChan():
|
||||
if !ok {
|
||||
framework.Failf("PVC watch ended prematurely")
|
||||
}
|
||||
|
||||
framework.Logf("PVC event %s: %#v", event.Type, event.Object)
|
||||
switch event.Type {
|
||||
case watch.Modified:
|
||||
|
Loading…
Reference in New Issue
Block a user