aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/proc/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'helper/proc/files.go')
-rw-r--r--helper/proc/files.go7
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.