mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-11 11:57:03 -07:00
test(cli): reduce polling frequency in waitUntilReady to avoid starvation
This commit is contained in:
@@ -233,7 +233,7 @@ class XtermStdout extends EventEmitter {
|
||||
});
|
||||
|
||||
let attempts = 0;
|
||||
const maxAttempts = 2000;
|
||||
const maxAttempts = 100;
|
||||
|
||||
let lastCurrent = '';
|
||||
let lastExpected = '';
|
||||
@@ -293,9 +293,9 @@ class XtermStdout extends EventEmitter {
|
||||
attempts++;
|
||||
await act(async () => {
|
||||
if (vi.isFakeTimers()) {
|
||||
await vi.advanceTimersByTimeAsync(5);
|
||||
await vi.advanceTimersByTimeAsync(100);
|
||||
} else {
|
||||
await new Promise((resolve) => setTimeout(resolve, 5));
|
||||
await new Promise((resolve) => setTimeout(resolve, 100));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user