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

View file

@ -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

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