From 8fe63eb07fc9ff3a13b66a8dfbb52be6e23f3a3f Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Wed, 13 Mar 2019 18:51:25 -0400 Subject: [PATCH] [Uptime] Fix flaky behavior and re-enable Uptime API tests (#32819) (#33180) * Attempt to fix issue causing flaky behavior in uptime API tests. * run x-pack-intake group 20 times to test flakiness * Revert "run x-pack-intake group 20 times to test flakiness" This reverts commit ad2e8c70031df5c6c3fe2ebe97872534c11694c1. --- x-pack/test/api_integration/apis/uptime/graphql/index.js | 2 +- x-pack/test/api_integration/apis/uptime/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/test/api_integration/apis/uptime/graphql/index.js b/x-pack/test/api_integration/apis/uptime/graphql/index.js index e4cbc19674e9..d07e05416540 100644 --- a/x-pack/test/api_integration/apis/uptime/graphql/index.js +++ b/x-pack/test/api_integration/apis/uptime/graphql/index.js @@ -8,7 +8,7 @@ export default function ({ getService, loadTestFile }) { const esArchiver = getService('esArchiver'); const archive = 'uptime/full_heartbeat'; - describe('graphql queries', () => { + describe('graphql', () => { before('load heartbeat data', async () => await esArchiver.load(archive)); after('unload heartbeat index', async () => await esArchiver.unload(archive)); // each of these test files imports a GQL query from diff --git a/x-pack/test/api_integration/apis/uptime/index.js b/x-pack/test/api_integration/apis/uptime/index.js index cde44bd4f56d..eba67c5f9d50 100644 --- a/x-pack/test/api_integration/apis/uptime/index.js +++ b/x-pack/test/api_integration/apis/uptime/index.js @@ -8,9 +8,9 @@ export default function ({ getService, loadTestFile }) { const es = getService('es'); describe('uptime', () => { - beforeEach(() => + before(() => es.indices.delete({ - index: 'heartbeat', + index: 'heartbeat*', ignore: [404], }));