mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
# Backport This will backport the following commits from `main` to `8.10`: - [[Fleet] Increase number of attempts on flaky unenroll test (#164734)](https://github.com/elastic/kibana/pull/164734) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Mark Hopkin","email":"mark.hopkin@elastic.co"},"sourceCommit":{"committedDate":"2023-08-24T16:13:29Z","message":"[Fleet] Increase number of attempts on flaky unenroll test (#164734)\n\n## Summary\r\n\r\nCloses #157205 \r\n\r\nAdd an extra attempt to this flky test.\r\n\r\nbonus: we were rejecting with strings which was giving us this funny\r\nerror:\r\n\r\n```\r\n[Error: the string \"action timed out\" was thrown, throw an Error :)]\r\n```","sha":"f2c69986fdfa390584a1c03b455cdf14ba2b19cb","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","backport:prev-minor","v8.11.0"],"number":164734,"url":"https://github.com/elastic/kibana/pull/164734","mergeCommit":{"message":"[Fleet] Increase number of attempts on flaky unenroll test (#164734)\n\n## Summary\r\n\r\nCloses #157205 \r\n\r\nAdd an extra attempt to this flky test.\r\n\r\nbonus: we were rejecting with strings which was giving us this funny\r\nerror:\r\n\r\n```\r\n[Error: the string \"action timed out\" was thrown, throw an Error :)]\r\n```","sha":"f2c69986fdfa390584a1c03b455cdf14ba2b19cb"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164734","number":164734,"mergeCommit":{"message":"[Fleet] Increase number of attempts on flaky unenroll test (#164734)\n\n## Summary\r\n\r\nCloses #157205 \r\n\r\nAdd an extra attempt to this flky test.\r\n\r\nbonus: we were rejecting with strings which was giving us this funny\r\nerror:\r\n\r\n```\r\n[Error: the string \"action timed out\" was thrown, throw an Error :)]\r\n```","sha":"f2c69986fdfa390584a1c03b455cdf14ba2b19cb"}}]}] BACKPORT--> Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
This commit is contained in:
parent
a87d0abc4f
commit
017fda6497
5 changed files with 6 additions and 6 deletions
|
@ -201,7 +201,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
const intervalId = setInterval(async () => {
|
||||
if (attempts > 2) {
|
||||
clearInterval(intervalId);
|
||||
reject('action timed out');
|
||||
reject(new Error('action timed out'));
|
||||
}
|
||||
++attempts;
|
||||
const {
|
||||
|
|
|
@ -87,7 +87,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
const intervalId = setInterval(async () => {
|
||||
if (attempts > 2) {
|
||||
clearInterval(intervalId);
|
||||
reject('action timed out');
|
||||
reject(new Error('action timed out'));
|
||||
}
|
||||
++attempts;
|
||||
const {
|
||||
|
|
|
@ -204,9 +204,9 @@ export default function (providerContext: FtrProviderContext) {
|
|||
await new Promise((resolve, reject) => {
|
||||
let attempts = 0;
|
||||
const intervalId = setInterval(async () => {
|
||||
if (attempts > 2) {
|
||||
if (attempts > 3) {
|
||||
clearInterval(intervalId);
|
||||
reject('action timed out');
|
||||
reject(new Error('action timed out'));
|
||||
}
|
||||
++attempts;
|
||||
const {
|
||||
|
|
|
@ -78,7 +78,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
const intervalId = setInterval(async () => {
|
||||
if (attempts > 4) {
|
||||
clearInterval(intervalId);
|
||||
reject('action timed out');
|
||||
reject(new Error('action timed out'));
|
||||
}
|
||||
++attempts;
|
||||
const {
|
||||
|
|
|
@ -618,7 +618,7 @@ export default function (providerContext: FtrProviderContext) {
|
|||
const intervalId = setInterval(async () => {
|
||||
if (attempts > 4) {
|
||||
clearInterval(intervalId);
|
||||
reject('action timed out');
|
||||
reject(new Error('action timed out'));
|
||||
}
|
||||
++attempts;
|
||||
const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue