[Uptime] Fix flaky behavior and re-enable Uptime API tests (#32819) (#33179)

* 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 ad2e8c7003.
This commit is contained in:
Justin Kambic 2019-03-13 18:52:21 -04:00 committed by GitHub
parent db1ea9ccfb
commit 2b7093919c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -8,8 +8,7 @@ export default function ({ getService, loadTestFile }) {
const esArchiver = getService('esArchiver');
const archive = 'uptime/full_heartbeat';
// FLAKY: https://github.com/elastic/kibana/issues/31242
describe.skip('graphql', () => {
describe('graphql', () => {
before('load heartbeat data', () => esArchiver.load(archive));
after('unload heartbeat index', () => esArchiver.unload(archive));
// each of these test files imports a GQL query from

View file

@ -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],
}));