fix S1000 simplify ch switch cases
Signed-off-by: Ken Sipe <kensipe@gmail.com> Kubernetes-commit: ba11567617aa8f00d9be01ce2551c49d153cdadf
This commit is contained in:
parent
32533315c9
commit
f5622f5df7
|
@ -113,8 +113,7 @@ func TestClientReceivedGOAWAY(t *testing.T) {
|
|||
|
||||
count := 0
|
||||
for {
|
||||
select {
|
||||
case <-timer.C:
|
||||
<-timer.C
|
||||
n, err := w.Write([]byte("w"))
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -125,7 +124,6 @@ func TestClientReceivedGOAWAY(t *testing.T) {
|
|||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
|
Loading…
Reference in New Issue