From ecfa6cc0daca88882f770b2d17595e392e0c4a74 Mon Sep 17 00:00:00 2001 From: 00Fjongl <65314359+00Fjongl@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:43:38 -0500 Subject: [PATCH] Test workflow again --- proxyServiceValidator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxyServiceValidator.js b/proxyServiceValidator.js index d8da52c9..5c3e63e2 100644 --- a/proxyServiceValidator.js +++ b/proxyServiceValidator.js @@ -275,9 +275,12 @@ xx xx resolve(); }); }); + const timeout = new Promise((resolve) => { + setTimeout(resolve, 10000, false); + }); exampleIFrame.src = url; exampleIFrame.style.display = 'none'; - await waitForDocument; + await Promise.race([waitForDocument, timeout]); return result; };