Skip to content

Commit

Permalink
fix tests to account for alert at n-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed May 5, 2020
1 parent c1a395c commit 8a67866
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x-pack/plugins/endpoint/common/generate_data.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,7 @@ describe('data generator', () => {
});

it('with n-1 process events', () => {
// for (let i = 1; i < events.length - 1; i++) {
// expect(events[i].process.parent?.entity_id).toEqual(events[i - 1].process.entity_id);
// expect(events[i].event.kind).toEqual('event');
// expect(events[i].event.category).toEqual('process');
// }
for (let i = events.length - 1; i > 0; ) {
for (let i = events.length - 2; i > 0; ) {
const parentEntityIdOfChild = events[i].process.parent?.entity_id;
for (
;
Expand Down

0 comments on commit 8a67866

Please sign in to comment.