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:
Bryan C. Mills 2022-11-17 13:57:18 -05:00 committed by Gopher Robot
parent 3d085f3fce
commit ba373eed34
1 changed files with 1 additions and 5 deletions

View File

@ -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
}