[APM] Fix top dependencies tests (#117087) (#117850)

* Fix dependencies tests

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

Co-authored-by: Giorgos Bamparopoulos <georgios.bamparopoulos@elastic.co>
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
This commit is contained in:
Kibana Machine 2021-11-08 10:35:44 -05:00 committed by GitHub
parent 57febcecfa
commit 1b53bad936
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,12 +50,15 @@ export default function ApiTest({ getService }: FtrProviderContext) {
it('returns correct metadata for the dependency', async () => {
await generateData({ synthtraceEsClient, start, end });
const { status, body } = await callApi();
const { span } = dataConfig;
expect(status).to.be(200);
expect(body.metadata.spanType).to.equal(span.type);
expect(body.metadata.spanSubtype).to.equal(span.subType);
await synthtraceEsClient.clean();
});
}
);