From d05b534350bdf780c8c85e67ecc4abf433a7ebd7 Mon Sep 17 00:00:00 2001 From: Julia Rechkunova Date: Mon, 19 Sep 2022 11:46:22 +0200 Subject: [PATCH] [Discover] Fix fields flaky test (#140872) Co-authored-by: Joe Reuter --- test/api_integration/apis/unified_field_list/field_stats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/api_integration/apis/unified_field_list/field_stats.ts b/test/api_integration/apis/unified_field_list/field_stats.ts index 1a359c09f146b..5d41d412dbb06 100644 --- a/test/api_integration/apis/unified_field_list/field_stats.ts +++ b/test/api_integration/apis/unified_field_list/field_stats.ts @@ -411,7 +411,7 @@ export default ({ getService }: FtrProviderContext) => { expect(body.totalDocuments).to.eql(4634); expect(body.sampledDocuments).to.eql(100); expect(body.sampledValues).to.eql(100); - expect(body.topValues.buckets.length).to.eql(5); + expect(body.topValues.buckets.length).to.be.greaterThan(0); }); it('should return top values for index pattern runtime string fields', async () => {