Skip to content

Commit

Permalink
Increase retry timeout to prevent flaky tests (#42291)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Jul 30, 2019
1 parent 4ca38c4 commit e0920c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/api_integration/apis/actions/fire.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function({ getService }: KibanaFunctionalTestDefaultProviders) {
.then((resp: any) => {
expect(resp.body).to.be.an('object');
});
const indexedRecord = await retry.tryForTime(5000, async () => {
const indexedRecord = await retry.tryForTime(15000, async () => {
const searchResult = await es.search({
index: esTestIndexName,
body: {
Expand Down Expand Up @@ -139,7 +139,7 @@ export default function({ getService }: KibanaFunctionalTestDefaultProviders) {
.then((resp: any) => {
expect(resp.body).to.be.an('object');
});
const indexedRecord = await retry.tryForTime(5000, async () => {
const indexedRecord = await retry.tryForTime(15000, async () => {
const searchResult = await es.search({
index: esTestIndexName,
body: {
Expand Down
6 changes: 3 additions & 3 deletions x-pack/test/api_integration/apis/alerting/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function alertTests({ getService }: KibanaFunctionalTestDefaultPr
.then((resp: any) => {
createdAlertIds.push(resp.body.id);
});
const alertTestRecord = await retry.tryForTime(5000, async () => {
const alertTestRecord = await retry.tryForTime(15000, async () => {
const searchResult = await es.search({
index: esTestIndexName,
body: {
Expand Down Expand Up @@ -102,7 +102,7 @@ export default function alertTests({ getService }: KibanaFunctionalTestDefaultPr
reference: 'create-test-1',
},
});
const actionTestRecord = await retry.tryForTime(5000, async () => {
const actionTestRecord = await retry.tryForTime(15000, async () => {
const searchResult = await es.search({
index: esTestIndexName,
body: {
Expand Down Expand Up @@ -175,7 +175,7 @@ export default function alertTests({ getService }: KibanaFunctionalTestDefaultPr
.expect(200);
createdAlertIds.push(createdAlert.id);

const scheduledActionTask = await retry.tryForTime(5000, async () => {
const scheduledActionTask = await retry.tryForTime(15000, async () => {
const searchResult = await es.search({
index: '.kibana_task_manager',
body: {
Expand Down

0 comments on commit e0920c6

Please sign in to comment.