ci: Fix flacky test error assertion (#29848)

This commit is contained in:
Matsu 2026-05-06 11:31:07 +03:00 committed by GitHub
parent f2764f04c0
commit 61c8895f63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -822,11 +822,11 @@ describe('OutputParserStructured', () => {
.calledWith('prompt', 0, NAIVE_FIX_PROMPT)
.mockReturnValueOnce('Invalid prompt without error placeholder');
await expect(outputParser.supplyData.call(thisArg, 0)).rejects.toThrow(
new NodeOperationError(
thisArg.getNode(),
'Auto-fixing parser prompt has to contain {error} placeholder',
),
const execution = outputParser.supplyData.call(thisArg, 0);
await expect(execution).rejects.toThrow(NodeOperationError);
await expect(execution).rejects.toThrow(
'Auto-fixing parser prompt has to contain {error} placeholder',
);
});