Skip to content

Commit

Permalink
Incorporate PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Jun 8, 2020
1 parent 33168cb commit 05cb9f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export const fullyMatchingIds = (queryResult: any, statusFilter?: string) => {
//
// We just check if the timestamp is greater. Note this may match an incomplete check group
// that has not yet sent a summary doc
if (latestStillMatchingSource['@timestamp'] >= latestSource['@timestamp']) {
if (
latestStillMatchingSource &&
latestStillMatchingSource['@timestamp'] >= latestSource['@timestamp']
) {
matched = true;
}
const checkGroup = latestSource.monitor.check_group;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default function ({ getService }: FtrProviderContext) {
const url = getBaseUrl(dateRangeStart, dateRangeEnd) + `&filters=${filters}`;
const apiResponse = await supertest.get(url);
const nonSummaryRes = apiResponse.body;
// expect(JSON.stringify(nonSummaryRes)).to.eql("foo");
expect(nonSummaryRes.summaries.length).to.eql(1);
});

Expand Down

0 comments on commit 05cb9f4

Please sign in to comment.