Skip to content

Commit 9e35f09

Browse files
committed
Rename
1 parent 0c13d2d commit 9e35f09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/core/task/__tests__/Task.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)