mirror of
https://github.com/golang/go
synced 2024-11-26 18:16:48 -07:00
reflect: wait longer before declaring select test stuck
Fixes #9427. Change-Id: If8094d4d4f6737c03d83e08e177c2a7f0ff9d89f Reviewed-on: https://go-review.googlesource.com/12234 Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
parent
238a39594b
commit
3d3a0169bf
@ -1382,7 +1382,7 @@ func selectWatcher() {
|
||||
for {
|
||||
time.Sleep(1 * time.Second)
|
||||
selectWatch.Lock()
|
||||
if selectWatch.info != nil && time.Since(selectWatch.now) > 1*time.Second {
|
||||
if selectWatch.info != nil && time.Since(selectWatch.now) > 10*time.Second {
|
||||
fmt.Fprintf(os.Stderr, "TestSelect:\n%s blocked indefinitely\n", fmtSelect(selectWatch.info))
|
||||
panic("select stuck")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user