helper/proc: raise FulfillmentTimeout in tests
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m30s
Test / Hakurei (push) Successful in 3m36s
Test / Hpkg (push) Successful in 4m22s
Test / Sandbox (race detector) (push) Successful in 4m41s
Test / Hakurei (race detector) (push) Successful in 5m41s
Test / Flake checks (push) Successful in 1m32s
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m30s
Test / Hakurei (push) Successful in 3m36s
Test / Hpkg (push) Successful in 4m22s
Test / Sandbox (race detector) (push) Successful in 4m41s
Test / Hakurei (race detector) (push) Successful in 5m41s
Test / Flake checks (push) Successful in 1m32s
This appears to be yet another source of spurious test failures. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
1ba1cb8865
commit
afa1a8043e
@ -6,11 +6,18 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
var FulfillmentTimeout = 2 * time.Second
|
var FulfillmentTimeout = 2 * time.Second
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
if testing.Testing() {
|
||||||
|
FulfillmentTimeout *= 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// A File is an extra file with deferred initialisation.
|
// A File is an extra file with deferred initialisation.
|
||||||
type File interface {
|
type File interface {
|
||||||
// Init initialises File state. Init must not be called more than once.
|
// Init initialises File state. Init must not be called more than once.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user