mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Rename expect methods. (#11046)
This commit is contained in:
committed by
GitHub
parent
4a5ef4d9f7
commit
a73b81452d
@@ -182,7 +182,7 @@ export class InteractiveRun {
|
||||
});
|
||||
}
|
||||
|
||||
async waitForText(text: string, timeout?: number) {
|
||||
async expectText(text: string, timeout?: number) {
|
||||
if (!timeout) {
|
||||
timeout = getDefaultTimeout();
|
||||
}
|
||||
@@ -207,7 +207,7 @@ export class InteractiveRun {
|
||||
this.ptyProcess.kill();
|
||||
}
|
||||
|
||||
waitForExit(): Promise<number> {
|
||||
expectExit(): Promise<number> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const timer = setTimeout(
|
||||
() =>
|
||||
@@ -902,7 +902,7 @@ export class TestRig {
|
||||
|
||||
const run = new InteractiveRun(ptyProcess);
|
||||
// Wait for the app to be ready
|
||||
await run.waitForText('Type your message', 30000);
|
||||
await run.expectText('Type your message', 30000);
|
||||
return run;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user