From c8ba55f512caa8dcb6c0b2322933af5e8c2de575 Mon Sep 17 00:00:00 2001 From: Kyle Pollich Date: Wed, 29 Nov 2023 14:46:47 -0500 Subject: [PATCH] Increase reassign attempts to 5 Ref https://github.com/elastic/kibana/issues/162545 --- x-pack/test/fleet_api_integration/apis/agents/reassign.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/test/fleet_api_integration/apis/agents/reassign.ts b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts index 141372b9aae93..1bbc9eb29ceb2 100644 --- a/x-pack/test/fleet_api_integration/apis/agents/reassign.ts +++ b/x-pack/test/fleet_api_integration/apis/agents/reassign.ts @@ -200,7 +200,7 @@ export default function (providerContext: FtrProviderContext) { await new Promise((resolve, reject) => { let attempts = 0; const intervalId = setInterval(async () => { - if (attempts > 2) { + if (attempts > 5) { clearInterval(intervalId); reject(new Error('action timed out')); }