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.