refactor(ralph-loop test): clarify race-condition predicate naming
Rename the local wait predicate to avoid confusion with deprecated auth-prompt condition fields. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -21,9 +21,9 @@ function createDeferred(): {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function waitUntil(condition: () => boolean): Promise<void> {
|
async function waitUntil(shouldTrigger: () => boolean): Promise<void> {
|
||||||
for (let index = 0; index < 100; index++) {
|
for (let index = 0; index < 100; index++) {
|
||||||
if (condition()) {
|
if (shouldTrigger()) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user