mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-14 21:37:20 -07:00
perf(test): optimize test suite speed and stability
This commit is contained in:
@@ -103,7 +103,9 @@ export class TerminalCapabilityManager {
|
||||
* This should be called once at app startup.
|
||||
*/
|
||||
async detectCapabilities(): Promise<void> {
|
||||
if (this.detectionComplete) return;
|
||||
if (this.detectionComplete) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
||||
this.detectionComplete = true;
|
||||
@@ -146,7 +148,7 @@ export class TerminalCapabilityManager {
|
||||
|
||||
// A somewhat long timeout is acceptable as all terminals should respond
|
||||
// to the device attributes query used as a sentinel.
|
||||
timeoutId = setTimeout(cleanup, 1000);
|
||||
timeoutId = setTimeout(cleanup, 50);
|
||||
|
||||
const onData = (data: Buffer) => {
|
||||
buffer += data.toString();
|
||||
|
||||
Reference in New Issue
Block a user