Skip to content

Commit

Permalink
chore(NA): fix functional test on precision
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic committed Jun 18, 2020
1 parent f06ce05 commit 33c8aa3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function average(dataTuples, targetTuples) {
// Phase 1: Downsample
// We necessarily won't well match the dataSource here as we don't know how much data
// they had when creating their own average
const resultTimes = _.map(targetTuples, '0');
const resultTimes = _.map(targetTuples, 0);
const dataTuplesQueue = _.clone(dataTuples);
const resultValues = _.map(targetTuples, function (bucket) {
const time = bucket[0];
Expand Down
6 changes: 3 additions & 3 deletions x-pack/test/api_integration/apis/metrics_ui/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default function ({ getService }: FtrProviderContext) {
name: 'cpu',
value: 0.0032,
max: 0.0038333333333333336,
avg: 0.0027944444444444444,
avg: 0.002794444444444445,
});
}
});
Expand Down Expand Up @@ -380,7 +380,7 @@ export default function ({ getService }: FtrProviderContext) {
name: 'cpu',
value: 0.0032,
max: 0.0038333333333333336,
avg: 0.0027944444444444444,
avg: 0.002794444444444445,
});
const secondNode = nodes[1];
expect(secondNode).to.have.property('path');
Expand All @@ -392,7 +392,7 @@ export default function ({ getService }: FtrProviderContext) {
name: 'cpu',
value: 0.0032,
max: 0.0038333333333333336,
avg: 0.0027944444444444444,
avg: 0.002794444444444445,
});
}
});
Expand Down

0 comments on commit 33c8aa3

Please sign in to comment.