Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const (
pollInterval = 15 * time.Second
dispatchWait = 12 * time.Minute
dispatchPoll = 5 * time.Second
dispatchMaxTry = 24
dispatchMaxTry = 48

artifactRunPoll = 5 * time.Second
artifactRunWait = 5 * time.Minute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ import (
"github.com/fullsend-ai/fullsend/internal/forge"
)

func TestDispatchDetectionWindow_AtLeast4Minutes(t *testing.T) {
t.Parallel()

// The dispatch detection window is dispatchMaxTry × dispatchPoll.
// It must be at least 4 minutes to tolerate slow GitHub webhook
// delivery. See issue #5503.
window := time.Duration(dispatchMaxTry) * dispatchPoll
assert.GreaterOrEqual(t, window, 4*time.Minute,
"dispatch detection window (%v) should be at least 4 minutes", window)
}

func TestSelectWorkflowRun_ReturnsFailedRun(t *testing.T) {
t.Parallel()

Expand Down
Loading