[QA] Bind the retry to fixup error in it repo tests (#100948)

Verfiied via: https://internal-ci.elastic.co/view/All/job/elastic+integration-test+master/487/
This commit is contained in:
Tre 2021-06-02 12:28:59 -06:00 committed by GitHub
parent 66553681c0
commit dc5511f73b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ export default function ({ getService, getPageObjects }) {
await putWatcher(watch, id, body, client, log);
});
it('should be successful and increment revision', async () => {
await getWatcher(watch, id, client, log, PageObjects.common, retry.tryForTime);
await getWatcher(watch, id, client, log, PageObjects.common, retry.tryForTime.bind(retry));
});
it('should delete watch and update revision', async () => {
await deleteWatcher(watch, id, client, log);

View file

@ -79,7 +79,7 @@ export default ({ getService, getPageObjects }) => {
await putWatcher(watch, id, body, client, log);
});
it('should be successful and increment revision', async () => {
await getWatcher(watch, id, client, log, PageObjects.common, retry.tryForTime);
await getWatcher(watch, id, client, log, PageObjects.common, retry.tryForTime.bind(retry));
});
it('should delete watch and update revision', async () => {
await deleteWatcher(watch, id, client, log);