mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-12 16:10:30 +02:00
ci: Fix flacky test error assertion (#29848)
This commit is contained in:
parent
f2764f04c0
commit
61c8895f63
|
|
@ -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',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user