@@ -7,8 +7,11 @@ import * as vscode from "vscode"
77import type { ClineMessage } from "@roo-code/types"
88
99import { waitFor , sleep } from "../utils"
10+ import { setDefaultSuiteTimeout } from "../test-utils"
11+
12+ suite ( "Roo Code read_file Tool" , function ( ) {
13+ setDefaultSuiteTimeout ( this )
1014
11- suite ( "Roo Code read_file Tool" , ( ) => {
1215 let tempDir : string
1316 let testFiles : {
1417 simple : string
@@ -118,7 +121,6 @@ suite("Roo Code read_file Tool", () => {
118121 } )
119122
120123 test ( "Should read a simple text file" , async function ( ) {
121- this . timeout ( 90_000 ) // Increase timeout for this test
122124 const api = globalThis . api
123125 const messages : ClineMessage [ ] = [ ]
124126 let taskStarted = false
@@ -264,7 +266,6 @@ suite("Roo Code read_file Tool", () => {
264266 } )
265267
266268 test ( "Should read a multiline file" , async function ( ) {
267- this . timeout ( 90_000 ) // Increase timeout
268269 const api = globalThis . api
269270 const messages : ClineMessage [ ] = [ ]
270271 let taskCompleted = false
@@ -376,7 +377,6 @@ suite("Roo Code read_file Tool", () => {
376377 } )
377378
378379 test ( "Should read file with line range" , async function ( ) {
379- this . timeout ( 90_000 ) // Increase timeout
380380 const api = globalThis . api
381381 const messages : ClineMessage [ ] = [ ]
382382 let taskCompleted = false
@@ -562,7 +562,6 @@ suite("Roo Code read_file Tool", () => {
562562 } )
563563
564564 test ( "Should read XML content file" , async function ( ) {
565- this . timeout ( 90_000 ) // Increase timeout
566565 const api = globalThis . api
567566 const messages : ClineMessage [ ] = [ ]
568567 let taskCompleted = false
@@ -634,7 +633,6 @@ suite("Roo Code read_file Tool", () => {
634633 } )
635634
636635 test ( "Should read multiple files in sequence" , async function ( ) {
637- this . timeout ( 90_000 ) // Increase timeout
638636 const api = globalThis . api
639637 const messages : ClineMessage [ ] = [ ]
640638 let taskCompleted = false
@@ -708,7 +706,6 @@ Assume both files exist and you can read them directly. Read each file and tell
708706 } )
709707
710708 test ( "Should read large file efficiently" , async function ( ) {
711- this . timeout ( 90_000 ) // Increase timeout
712709 const api = globalThis . api
713710 const messages : ClineMessage [ ] = [ ]
714711 let taskCompleted = false
0 commit comments