Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Nov 1, 2022
1 parent 242ae64 commit 8145902
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ describe('APMEventClient', () => {
indices: {} as any,
options: {
includeFrozen: false,
forceSyntheticSource: false,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export async function getServiceAgent({
end: number;
}) {
const params = {
terminate_after: 1,
apm: {
events: [
ProcessorEvent.error,
Expand All @@ -59,6 +60,11 @@ export async function getServiceAgent({
},
},
],
should: {
exists: {
field: SERVICE_RUNTIME_NAME,
},
},
},
},
sort: {
Expand All @@ -75,8 +81,6 @@ export async function getServiceAgent({
return {};
}

console.log(JSON.stringify(response, null, 2));

const { agent, service } = response.hits.hits[0]._source as ServiceAgent;
return { agentName: agent?.name, runtimeName: service?.runtime?.name };
}

0 comments on commit 8145902

Please sign in to comment.