File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,25 @@ import (
27
27
// on heavily loaded systems.
28
28
//
29
29
// The current value is set based on flakes observed in the Go builders.
30
- var settleTime = 250 * time .Millisecond
30
+ var settleTime = 100 * time .Millisecond
31
31
32
32
func init () {
33
- if s := os .Getenv ("GO_TEST_TIMEOUT_SCALE" ); s != "" {
33
+ if testenv .Builder () == "solaris-amd64-oraclerel" {
34
+ // The solaris-amd64-oraclerel builder has been observed to time out in
35
+ // TestNohup even with a 250ms settle time.
36
+ //
37
+ // Use a much longer settle time on that builder to try to suss out whether
38
+ // the test is flaky due to builder slowness (which may mean we need a
39
+ // longer GO_TEST_TIMEOUT_SCALE) or due to a dropped signal (which may
40
+ // instead need a test-skip and upstream bug filed against the Solaris
41
+ // kernel).
42
+ //
43
+ // This constant is chosen so as to make the test as generous as possible
44
+ // while still reliably completing within 3 minutes in non-short mode.
45
+ //
46
+ // See https://golang.org/issue/33174.
47
+ settleTime = 11 * time .Second
48
+ } else if s := os .Getenv ("GO_TEST_TIMEOUT_SCALE" ); s != "" {
34
49
if scale , err := strconv .Atoi (s ); err == nil {
35
50
settleTime *= time .Duration (scale )
36
51
}
You can’t perform that action at this time.
0 commit comments