test(tui): the wait for the provider after a saved key is the hang-catching budget

A fixed ten seconds reported a hang on a loaded Windows runner where the first-run test had already spent forty seconds. testenv.Budget exists for waits that only catch a hang.
This commit is contained in:
esengine committed 2026-11-05 08:19:41 -08:00
1 parent 8beea984d0
commit 1cdbb9303f
1 file changed
+1 -1
+1 -1
View File
@@ -133,7 +133,7 @@ api_key_env = "` + setupKeyEnv + `"
if err := c.Submit(ctx, "hello"); err != nil {
t.Fatalf("submit after the key was saved: %v", err)
}
for deadline := time.Now().Add(10 * time.Second); ; time.Sleep(20 * time.Millisecond) {
for deadline := time.Now().Add(testenv.Budget(t)); ; time.Sleep(20 * time.Millisecond) {
model.mu.Lock()
sent = model.calls
model.mu.Unlock()