Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Oct 7, 2021
1 parent 073fa3d commit 7c1df69
Show file tree
Hide file tree
Showing 13 changed files with 1,625 additions and 637 deletions.
2 changes: 1 addition & 1 deletion x-pack/test/apm_api_integration/tests/inspect/inspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function customLinksTests({ getService }: FtrProviderContext) {
},
});
expect(status).to.be(200);
expect(body._inspect?.length).to.be(2);
expect(body._inspect?.length).to.be(1);

// @ts-expect-error
expect(Object.keys(body._inspect[0])).to.eql([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export default function ApiTest({ getService }: FtrProviderContext) {

expectSnapshot(response.body.serviceCount).toMatchInline(`8`);

expectSnapshot(response.body.transactionPerMinute.value).toMatchInline(`58.9`);
expectSnapshot(response.body.transactionPerMinute.timeseries.length).toMatchInline(`30`);
expectSnapshot(response.body.transactionPerMinute.value).toMatchInline(`59.1666666666667`);
expectSnapshot(response.body.transactionPerMinute.timeseries.length).toMatchInline(`31`);

expectSnapshot(
response.body.transactionPerMinute.timeseries
Expand All @@ -69,23 +69,23 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
Object {
"x": "2021-08-03T06:50:00.000Z",
"y": 36,
"y": 51,
},
Object {
"x": "2021-08-03T06:51:00.000Z",
"y": 55,
"y": 62,
},
Object {
"x": "2021-08-03T06:52:00.000Z",
"y": 40,
"y": 56,
},
Object {
"x": "2021-08-03T06:53:00.000Z",
"y": 53,
"y": 50,
},
Object {
"x": "2021-08-03T06:54:00.000Z",
"y": 39,
"y": 77,
},
]
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ export default function serviceMapsApiTests({ getService }: FtrProviderContext)
"avgErrorRate": 0,
"avgMemoryUsage": 0.202572668763642,
"transactionStats": Object {
"avgRequestsPerMinute": 5.2,
"avgTransactionDuration": 53906.6603773585,
"avgRequestsPerMinute": 7.13333333333333,
"avgTransactionDuration": 53147.5747663551,
},
}
`);
Expand Down
Loading

0 comments on commit 7c1df69

Please sign in to comment.