src/handlers/harness/invoke/invoke.screen.test.tsx flaky test
- Lingua principale
- TypeScript
- Stelle
- 283
- Fork
- 95
- Merge medio
- 1g 2h
- PR unite (30g)
- 183
Descrizione
Example: https://github.com/aws/agentcore-cli/actions/runs/33711478004/job/100511721210?pr=2175
Error:
```
26 | timeoutMs = 1000,
27 | intervalMs = 5,
28 | ): Promise {
29 | let waited = 0;
30 | while (!(await predicate())) {
31 | if (waited >= timeoutMs) throw new WaitForTimeoutError();
^
WaitForTimeoutError: waitFor: condition not met before timeout
at waitFor (/Users/runner/work/agentcore-cli/agentcore-cli/src/testing/timing.tsx:31:36)
at async (/Users/runner/work/agentcore-cli/agentcore-cli/src/handlers/harness/invoke/invoke.screen.test.tsx:441:11)
Error:
at waitFor (/Users/runner/work/agentcore-cli/agentcore-cli/src/testing/timing.tsx:31:36)
at async (/Users/runner/work/agentcore-cli/agentcore-cli/src/handlers/harness/invoke/invoke.screen.test.tsx:441:11)
(fail) invoke chat screen > backspace edits the prompt after a completed send [1384.79ms]
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with src/handlers/harness/invoke/invoke.screen.test.tsx around line 441 and the waitFor implementation in src/testing/timing.tsx. Run the failing invoke chat screen test repeatedly and trace the condition used after sending; done means the backspace-after-completed-send test passes reliably without timeout.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- testing
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 72/100