Skip to content

Commit e8ec9b8

Browse files
committed
fix: increase timeout on tests
1 parent 42e43df commit e8ec9b8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

extensions/cli/src/ui/__tests__/TUIChat.fileSearch.test.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { testSingleMode, renderInMode } from "./TUIChat.dualModeHelper.js";
1+
import { renderInMode, testSingleMode } from "./TUIChat.dualModeHelper.js";
22

33
describe("TUIChat - @ File Search Tests", () => {
44
testSingleMode("shows @ character when user types @", "local", async () => {
55
const { lastFrame, stdin } = renderInMode("local");
66

77
// Wait a bit for initial render
8-
await new Promise((resolve) => setTimeout(resolve, 50));
8+
await new Promise((resolve) => setTimeout(resolve, 100));
99

1010
// Type the @ character to trigger file search
1111
stdin.write("@");
1212

1313
// Wait longer for file search to initialize and display files
14-
await new Promise((resolve) => setTimeout(resolve, 200));
14+
await new Promise((resolve) => setTimeout(resolve, 400));
1515

1616
const frame = lastFrame()!;
1717

@@ -34,7 +34,7 @@ describe("TUIChat - @ File Search Tests", () => {
3434
stdin.write("@READ");
3535

3636
// Wait for file search to filter and display results
37-
await new Promise((resolve) => setTimeout(resolve, 100));
37+
await new Promise((resolve) => setTimeout(resolve, 300));
3838

3939
const frame = lastFrame()!;
4040

@@ -58,7 +58,7 @@ describe("TUIChat - @ File Search Tests", () => {
5858
stdin.write("@@test");
5959

6060
// Wait for UI update
61-
await new Promise((resolve) => setTimeout(resolve, 100));
61+
await new Promise((resolve) => setTimeout(resolve, 300));
6262

6363
const frame = lastFrame();
6464

@@ -80,7 +80,7 @@ describe("TUIChat - @ File Search Tests", () => {
8080
stdin.write("@");
8181

8282
// Wait for potential async operations
83-
await new Promise((resolve) => setTimeout(resolve, 50));
83+
await new Promise((resolve) => setTimeout(resolve, 200));
8484

8585
const frame = lastFrame()!;
8686

extensions/cli/src/ui/__tests__/TUIChat.slashCommands.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("TUIChat - Slash Commands Tests", () => {
88
stdin.write("/");
99

1010
// Wait a bit for the UI to update
11-
await new Promise((resolve) => setTimeout(resolve, 50));
11+
await new Promise((resolve) => setTimeout(resolve, 200));
1212

1313
const frame = lastFrame();
1414

@@ -27,11 +27,11 @@ describe("TUIChat - Slash Commands Tests", () => {
2727
testBothModes("filters slash commands when typing /log", async (mode) => {
2828
const { lastFrame, stdin } = renderInMode(mode);
2929

30-
// Type /log to trigger slash command filtering
30+
// Type /exi to trigger slash command filtering
3131
stdin.write("/exi");
3232

3333
// Wait a bit for the UI to update (allow extra time in both modes)
34-
await new Promise((resolve) => setTimeout(resolve, 200));
34+
await new Promise((resolve) => setTimeout(resolve, 400));
3535

3636
const frame = lastFrame();
3737

@@ -50,14 +50,14 @@ describe("TUIChat - Slash Commands Tests", () => {
5050
testBothModes("handles tab key after slash command", async (mode) => {
5151
const { lastFrame, stdin } = renderInMode(mode);
5252

53-
// Type /log and then tab
53+
// Type /exi and then tab
5454
stdin.write("/exi");
5555

56-
await new Promise((resolve) => setTimeout(resolve, 50));
56+
await new Promise((resolve) => setTimeout(resolve, 200));
5757

5858
stdin.write("\t");
5959

60-
await new Promise((resolve) => setTimeout(resolve, 50));
60+
await new Promise((resolve) => setTimeout(resolve, 200));
6161

6262
const frameAfterTab = lastFrame();
6363

@@ -81,7 +81,7 @@ describe("TUIChat - Slash Commands Tests", () => {
8181
// Type just /
8282
stdin.write("/");
8383

84-
await new Promise((resolve) => setTimeout(resolve, 200));
84+
await new Promise((resolve) => setTimeout(resolve, 400));
8585

8686
const frame = lastFrame();
8787

0 commit comments

Comments
 (0)