From afa1a8043eecc1849bbb7213f9cd8bbcabc06899 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 29 Sep 2025 07:44:33 +0900 Subject: [PATCH] helper/proc: raise FulfillmentTimeout in tests This appears to be yet another source of spurious test failures. Signed-off-by: Ophestra --- helper/proc/files.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/helper/proc/files.go b/helper/proc/files.go index e41c3ef..0612718 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.