test: update batch processor test for new error message

- Update error message expectation to match enhanced error handling
- Fixes CI test failure after error handling improvements

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-09-30 11:29:43 +02:00
parent 8c2b1cfbbe
commit 6210378687

View File

@@ -389,11 +389,11 @@ describe('BatchProcessor', () => {
});
it('should throw error when no output file available', async () => {
const batchJob = { output_file_id: null };
const batchJob = { output_file_id: null, error_file_id: null };
await expect(
(processor as any).retrieveResults(batchJob)
).rejects.toThrow('No output file available for batch job');
).rejects.toThrow('No output file or error file available for batch job');
});
it('should handle malformed result lines gracefully', async () => {