mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
ci: executeBatch
should compare JSON after serialization, to avoid inconsistencies between main and own mode
This commit is contained in:
parent
b8458a53f6
commit
988c4a6354
|
@ -778,8 +778,9 @@ export class ExecuteBatch extends BaseCommand {
|
|||
}${workflowData.id}-snapshot.json`;
|
||||
if (fs.existsSync(fileName)) {
|
||||
const contents = fs.readFileSync(fileName, { encoding: 'utf-8' });
|
||||
|
||||
const changes = diff(JSON.parse(contents), data, { keysOnly: true });
|
||||
const expected = JSON.parse(contents);
|
||||
const recieved = JSON.parse(serializedData);
|
||||
const changes = diff(expected, recieved, { keysOnly: true });
|
||||
|
||||
if (changes !== undefined) {
|
||||
// If we had only additions with no removals
|
||||
|
|
Loading…
Reference in a new issue