mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
task.test.ts fix to check for messages before assersion instead of tokens used
This commit is contained in:
parent
63346fbc6e
commit
a41fb07adc
1 changed files with 2 additions and 3 deletions
|
|
@ -32,10 +32,9 @@ suite("Roo Code Task", () => {
|
|||
startTime = Date.now()
|
||||
|
||||
while (Date.now() - startTime < timeout) {
|
||||
const state = await globalThis.provider.getState()
|
||||
const task = state.taskHistory?.[0]
|
||||
const messages = globalThis.provider.messages
|
||||
|
||||
if (task && task.tokensOut > 0) {
|
||||
if (messages.some(({ type, text }) => type === "say" && text?.includes("My name is Roo"))) {
|
||||
break
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue