mirror of https://github.com/golang/go.git
playground/socket: eliminate an arbitrary timeout in TestLimiter
Fixes golang/go#55238. Change-Id: I17fe3865f7ec4d8889cdf71497b10a2ad0b41c11 Reviewed-on: https://go-review.googlesource.com/c/tools/+/451598 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
3d085f3fce
commit
ba373eed34
|
|
@ -69,9 +69,5 @@ func TestLimiter(t *testing.T) {
|
|||
if n != msgLimit+1 {
|
||||
t.Errorf("received %v messages, want %v", n, msgLimit+1)
|
||||
}
|
||||
select {
|
||||
case <-kr:
|
||||
case <-time.After(100 * time.Millisecond):
|
||||
t.Errorf("process wasn't killed after reaching limit")
|
||||
}
|
||||
<-kr
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue