mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue