Skip to content

Commit

Permalink
add ping check
Browse files Browse the repository at this point in the history
  • Loading branch information
restrry committed Nov 22, 2021
1 parent ddd43c1 commit 67ab3d0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ export default function ({ getService }: FtrProviderContext) {
await assertLogContains({
description: 'elasticsearch logs have the same traceId',
predicate: (record) =>
record.log?.logger === 'elasticsearch.query.data' && record.trace?.id === responseTraceId,
Boolean(
record.log?.logger === 'elasticsearch.query.data' &&
record.trace?.id === responseTraceId &&
// esClient.ping() request
record.message?.includes('HEAD /')
),

retry,
});
});
Expand Down

0 comments on commit 67ab3d0

Please sign in to comment.