mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
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:
1 parent
8beea984d0
commit
1cdbb9303f
1 file changed
+1
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user