mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +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:
|
loop:
|
||||||
for {
|
for {
|
||||||
select {
|
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)
|
framework.Logf("PVC event %s: %#v", event.Type, event.Object)
|
||||||
switch event.Type {
|
switch event.Type {
|
||||||
case watch.Modified:
|
case watch.Modified:
|
||||||
|
Loading…
Reference in New Issue
Block a user