diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-29 07:44:33 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-29 07:44:33 +0900 |
| commit | afa1a8043eecc1849bbb7213f9cd8bbcabc06899 (patch) | |
| tree | 7879d777241e4ceac3cfca8e6d6da1a7dcae6656 /helper | |
| parent | 1ba1cb886584966b4e6e65284a04dfaf8962ed65 (diff) | |
helper/proc: raise FulfillmentTimeout in tests
This appears to be yet another source of spurious test failures.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper')
| -rw-r--r-- | helper/proc/files.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/helper/proc/files.go b/helper/proc/files.go index e41c3ef1..0612718e 100644 --- a/helper/proc/files.go +++ b/helper/proc/files.go @@ -6,11 +6,18 @@ import ( "os/exec" "sync/atomic" "syscall" + "testing" "time" ) var FulfillmentTimeout = 2 * time.Second +func init() { + if testing.Testing() { + FulfillmentTimeout *= 10 + } +} + // A File is an extra file with deferred initialisation. type File interface { // Init initialises File state. Init must not be called more than once. |
