mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
fix S1000 simplify ch switch cases
Signed-off-by: Ken Sipe <kensipe@gmail.com>
This commit is contained in:
parent
268c2f81c7
commit
ba11567617
@ -113,8 +113,7 @@ func TestClientReceivedGOAWAY(t *testing.T) {
|
|||||||
|
|
||||||
count := 0
|
count := 0
|
||||||
for {
|
for {
|
||||||
select {
|
<-timer.C
|
||||||
case <-timer.C:
|
|
||||||
n, err := w.Write([]byte("w"))
|
n, err := w.Write([]byte("w"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
@ -125,7 +124,6 @@ func TestClientReceivedGOAWAY(t *testing.T) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
mux := http.NewServeMux()
|
mux := http.NewServeMux()
|
||||||
|
Loading…
Reference in New Issue
Block a user