Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions caddy/hotreload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"strings"
"sync"
"testing"
"time"

"github.com/caddyserver/caddy/v2/caddytest"
"github.com/stretchr/testify/require"
Expand All @@ -25,6 +26,10 @@ func TestHotReload(t *testing.T) {
indexFile := filepath.Join(tmpDir, "index.php")

tester := caddytest.NewTester(t)
// caddytest's default 5s http.Client.Timeout is too tight for the
// SSE roundtrip below on slow CI runners (notably emulated armv7).
// 30s keeps the test bounded so a real regression fails fast.
tester.Client.Timeout = 30 * time.Second
tester.InitServer(`
{
debug
Expand Down
Loading