File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1115,7 +1115,7 @@ describe("Cline", () => {
11151115
11161116 // Simulate time passing (more than rate limit)
11171117 // kilocode_change start: use performance instead of Date
1118- const originalDateNow = performance . now
1118+ const originalPerformanceNow = performance . now
11191119 const mockTime = performance . now ( ) + ( mockApiConfig . rateLimitSeconds + 1 ) * 1000
11201120 performance . now = vi . fn ( ( ) => mockTime )
11211121 // kilocode_change end
@@ -1140,8 +1140,9 @@ describe("Cline", () => {
11401140 // Verify no rate limiting was applied
11411141 expect ( mockDelay ) . not . toHaveBeenCalled ( )
11421142
1143- // Restore Date.now
1144- performance . now = originalDateNow // kilocode_change
1143+ // kilocode_change start
1144+ performance . now = originalPerformanceNow
1145+ // kilocode_change end
11451146 } )
11461147
11471148 it ( "should share rate limiting across multiple subtasks" , async ( ) => {
You can’t perform that action at this time.
0 commit comments