@@ -23,7 +23,7 @@ describe("shellStartTool", () => {
23
23
description : "Test process" ,
24
24
timeout : 500 , // Generous timeout to ensure sync mode
25
25
} ,
26
- { logger } ,
26
+ { logger }
27
27
) ;
28
28
29
29
expect ( result . mode ) . toBe ( "sync" ) ;
@@ -41,7 +41,7 @@ describe("shellStartTool", () => {
41
41
description : "Slow command test" ,
42
42
timeout : 50 , // Short timeout to force async mode
43
43
} ,
44
- { logger } ,
44
+ { logger }
45
45
) ;
46
46
47
47
expect ( result . mode ) . toBe ( "async" ) ;
@@ -57,7 +57,7 @@ describe("shellStartTool", () => {
57
57
command : "nonexistentcommand" ,
58
58
description : "Invalid command test" ,
59
59
} ,
60
- { logger } ,
60
+ { logger }
61
61
) ;
62
62
63
63
expect ( result . mode ) . toBe ( "sync" ) ;
@@ -75,7 +75,7 @@ describe("shellStartTool", () => {
75
75
description : "Sync completion test" ,
76
76
timeout : 500 ,
77
77
} ,
78
- { logger } ,
78
+ { logger }
79
79
) ;
80
80
81
81
// Even sync results should be in processStates
@@ -88,7 +88,7 @@ describe("shellStartTool", () => {
88
88
description : "Async completion test" ,
89
89
timeout : 50 ,
90
90
} ,
91
- { logger } ,
91
+ { logger }
92
92
) ;
93
93
94
94
if ( asyncResult . mode === "async" ) {
@@ -103,7 +103,7 @@ describe("shellStartTool", () => {
103
103
description : "Pipe test" ,
104
104
timeout : 50 , // Force async for interactive command
105
105
} ,
106
- { logger } ,
106
+ { logger }
107
107
) ;
108
108
109
109
expect ( result . mode ) . toBe ( "async" ) ;
@@ -130,15 +130,15 @@ describe("shellStartTool", () => {
130
130
}
131
131
} ) ;
132
132
133
- it ( "should use default timeout of 100ms " , async ( ) => {
133
+ it ( "should use default timeout of 10000ms " , async ( ) => {
134
134
const result = await shellStartTool . execute (
135
135
{
136
136
command : "sleep 1" ,
137
137
description : "Default timeout test" ,
138
138
} ,
139
- { logger } ,
139
+ { logger }
140
140
) ;
141
141
142
- expect ( result . mode ) . toBe ( "async " ) ;
142
+ expect ( result . mode ) . toBe ( "sync " ) ;
143
143
} ) ;
144
144
} ) ;
0 commit comments