From af99989c91e85dd9d110d5c10b91bf7ce58254b7 Mon Sep 17 00:00:00 2001 From: Allen Hutchison Date: Wed, 3 Sep 2025 13:40:19 -0700 Subject: [PATCH] fix(tests): make read_many_files test more reliable (#7676) --- integration-tests/read_many_files.test.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/integration-tests/read_many_files.test.ts b/integration-tests/read_many_files.test.ts index 8e839a6a1b..7739330c51 100644 --- a/integration-tests/read_many_files.test.ts +++ b/integration-tests/read_many_files.test.ts @@ -14,7 +14,7 @@ describe('read_many_files', () => { rig.createFile('file1.txt', 'file 1 content'); rig.createFile('file2.txt', 'file 2 content'); - const prompt = `Please use read_many_files to read file1.txt and file2.txt and show me what's in them`; + const prompt = `Use the read_many_files tool to read the contents of file1.txt and file2.txt and then print the contents of each file.`; const result = await rig.run(prompt); @@ -41,11 +41,7 @@ describe('read_many_files', () => { 'Expected to find either read_many_files or multiple read_file tool calls', ).toBeTruthy(); - // Validate model output - will throw if no output, warn if missing expected content - validateModelOutput( - result, - ['file 1 content', 'file 2 content'], - 'Read many files test', - ); + // Validate model output - will throw if no output + validateModelOutput(result, null, 'Read many files test'); }); });