Skip to content

Commit

Permalink
remove leading 0 from fractions array.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Jun 30, 2021
1 parent 62a1d37 commit de28966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('query_correlation', () => {

expect(
(query?.body?.aggs?.ks_test as any)?.bucket_count_ks_test?.fractions
).toEqual([0, ...fractions]);
).toEqual(fractions);
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ export const getTransactionDurationCorrelationRequest = (
// KS test p value = ks_test.less
ks_test: {
bucket_count_ks_test: {
// Remove 0 after https://github.com/elastic/elasticsearch/pull/74624 is merged
fractions: [0, ...fractions],
fractions,
buckets_path: 'latency_ranges>_count',
alternative: ['less', 'greater', 'two_sided'],
},
Expand Down

0 comments on commit de28966

Please sign in to comment.