Shorten the router's burst window in the test bundle so the desk is sent within seconds (issue 1218, check finding 1)
mesh/repo-check head 5aca005cb741 merged into trunk b4527d9091e9 beside mesh-controller#394@3e7f34d0 — pass: its merge-check.sh passed, each part in its to…
mesh/merge-gate head 5aca005cb741 merged into trunk b4527d9091e9 — pass: group feat/delivery-seat-by-claim composed: every machine composes with the change…
mesh/delivery delivered
mesh/delivery-group group feat/delivery-seat-by-claim delivered: every member is delivered

This commit is contained in:
2026-10-19 12:15:47 +02:00
parent 9f9e9fc9d3
commit 5aca005cb7
2 changed files with 5 additions and 2 deletions
@@ -35,6 +35,7 @@ func TestMain(m *testing.M) {
if os.Getenv(bundleVar) == "1" { if os.Getenv(bundleVar) == "1" {
kindsEvery = 200 * time.Millisecond kindsEvery = 200 * time.Millisecond
StartGrace = 500 * time.Millisecond StartGrace = 500 * time.Millisecond
BurstWindow = 200 * time.Millisecond
main() main()
os.Exit(0) os.Exit(0)
} }
+4 -2
View File
@@ -55,6 +55,10 @@ import (
"time" "time"
) )
// BurstWindow: what arrives for a channel within it goes out as one message. A variable, so the test bundle
// shortens it.
var BurstWindow = 30 * time.Second
// StartGrace: after start, nothing but the urgent conditions open in the controller's state. A variable, as // StartGrace: after start, nothing but the urgent conditions open in the controller's state. A variable, as
// kindsEvery is, so the test bundle shortens it. // kindsEvery is, so the test bundle shortens it.
var StartGrace = time.Minute var StartGrace = time.Minute
@@ -75,8 +79,6 @@ const (
// FreshFor: an event older than this by its own time is history — state, never a message. // FreshFor: an event older than this by its own time is history — state, never a message.
FreshFor = 10 * time.Minute FreshFor = 10 * time.Minute
// BurstWindow: what arrives for a channel within it goes out as one message.
BurstWindow = 30 * time.Second
// DesktopWarningEvery: warnings reach the desktop at most this often. // DesktopWarningEvery: warnings reach the desktop at most this often.
DesktopWarningEvery = 15 * time.Minute DesktopWarningEvery = 15 * time.Minute
// ResyncEvery: how often the open set is read from the controller again. // ResyncEvery: how often the open set is read from the controller again.