diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-17 17:02:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-17 17:04:06 +0900 |
| commit | 420c721c7da46ab1c633b019441b7b623215fd12 (patch) | |
| tree | 8443996fcee8a5df3427708ecdd353fba54f941b /internal/helper | |
| parent | bac583f89edd1360150143ff51f7264c01aa69ec (diff) | |
all: raise timeout defaults
This avoids timing out on systems running very slowly.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/helper')
| -rw-r--r-- | internal/helper/helper.go | 2 | ||||
| -rw-r--r-- | internal/helper/helper_test.go | 2 | ||||
| -rw-r--r-- | internal/helper/proc/files.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/internal/helper/helper.go b/internal/helper/helper.go index 378d9471..c16ff366 100644 --- a/internal/helper/helper.go +++ b/internal/helper/helper.go @@ -11,7 +11,7 @@ import ( "hakurei.app/internal/helper/proc" ) -var WaitDelay = 2 * time.Second +var WaitDelay = 5 * time.Second const ( // HakureiHelper is set to 1 when args fd is enabled and 0 otherwise. diff --git a/internal/helper/helper_test.go b/internal/helper/helper_test.go index dae098b8..a44d5ede 100644 --- a/internal/helper/helper_test.go +++ b/internal/helper/helper_test.go @@ -56,7 +56,7 @@ const ( // this function tests an implementation of the helper.Helper interface func testHelper(t *testing.T, createHelper func(ctx context.Context, setOutput func(stdoutP, stderrP *io.Writer), stat bool) helper.Helper) { oldWaitDelay := helper.WaitDelay - helper.WaitDelay = 16 * time.Second + helper.WaitDelay = 30 * time.Second t.Cleanup(func() { helper.WaitDelay = oldWaitDelay }) t.Run("start helper with status channel and wait", func(t *testing.T) { diff --git a/internal/helper/proc/files.go b/internal/helper/proc/files.go index 0612718e..10a3c0c4 100644 --- a/internal/helper/proc/files.go +++ b/internal/helper/proc/files.go @@ -10,7 +10,7 @@ import ( "time" ) -var FulfillmentTimeout = 2 * time.Second +var FulfillmentTimeout = 15 * time.Second func init() { if testing.Testing() { |
