host: allow scheduling slack in the startup budget test
Allow one second between the test timestamp and the startup deadline calculation on loaded machines. Keep the expected budgets, lower bound and exact parent deadline assertion unchanged; production is untouched.
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
1 file changed,
+1
−1
internal/host/haingress_g3_test.go+1 −1
diff --git a/internal/host/haingress_g3_test.go b/internal/host/haingress_g3_test.go| index 4b9b8f99e..84a9a1e91 100644 |
| --- a/internal/host/haingress_g3_test.go |
| +++ b/internal/host/haingress_g3_test.go |
| @@ -205,7 +205,7 @@ func TestG3StartupAttemptBudget(t *testing.T) { |
| if !deadline.Equal(parentDeadline) { |
| t.Errorf("startup exceeded parent deadline: %v", deadline) |
| } |
| - } else if got := deadline.Sub(start); got < want || got > want+100*time.Millisecond { |
| + } else if got := deadline.Sub(start); got < want || got > want+time.Second { |
| t.Errorf("startup budget = %s, want %s", got, want) |
| } |
| } |