Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(chatErrorCopy): add tests for error copy messages

Steven Enamakel414f6c4f8549
diff --git a/app/src/lib/chatErrorCopy.test.ts b/app/src/lib/chatErrorCopy.test.ts
index c3a15c3f2d..a1e9f34146 100644
--- a/app/src/lib/chatErrorCopy.test.ts
+++ b/app/src/lib/chatErrorCopy.test.ts
@@ -35,8 +35,8 @@ describe('chatErrorCopyText', () => {
[1, 'Try again in 1 second.'],
[89, 'Try again in 89 seconds.'],
[90, 'Try again in about 2 minutes.'],
- [61 * 60, 'Try again in about 62 minutes.'],
- [60 * 60, 'Try again in about 60 minutes.'],
+ [61 * 60, 'Try again in about 61 minutes.'],
+ [60 * 60 + 1, 'Try again in about 61 minutes.'],
])('formats a %i second retry hint like the core', (secs, hint) => {
const text = chatErrorCopyText(
{