1
0
forked from rosa/hakurei

all: raise timeout defaults

This avoids timing out on systems running very slowly.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-17 17:02:36 +09:00
parent bac583f89e
commit 420c721c7d
11 changed files with 17 additions and 15 deletions

View File

@@ -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.

View File

@@ -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) {

View File

@@ -10,7 +10,7 @@ import (
"time"
)
var FulfillmentTimeout = 2 * time.Second
var FulfillmentTimeout = 15 * time.Second
func init() {
if testing.Testing() {