Skip to content

Commit 78001ba

Browse files
Retry clearing webdrivers after frontend integration tests
Fixes DACH-NY/cn-test-failures#4437 Hard to say why this is timing out; let's attempt to fix via retry. [ci] Signed-off-by: Martin Florian <martin.florian@digitalasset.com>
1 parent f43715e commit 78001ba

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

apps/app/src/test/scala/org/lfdecentralizedtrust/splice/integration/tests/FrontendIntegrationTest.scala

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,19 +308,21 @@ trait FrontendTestCommon extends TestCommon with WebBrowser with CustomMatchers
308308

309309
protected def clearWebDrivers(implicit ec: ExecutionContext) = {
310310
logger.info("Clearing web drivers")
311-
webDrivers.values.toList.parTraverse { implicit webDriver =>
312-
Future {
313-
// Reset session storage so we see the login window again.
314-
// You cannot reset session storage of about:blank so
315-
// we exclude this.
316-
if (currentUrl != "about:blank") {
317-
webDriver.getSessionStorage().clear()
318-
eventually() {
319-
webDriver.getSessionStorage().keySet.asScala shouldBe empty
311+
eventually(60.seconds) {
312+
webDrivers.values.toList.parTraverse { implicit webDriver =>
313+
Future {
314+
// Reset session storage so we see the login window again.
315+
// You cannot reset session storage of about:blank so
316+
// we exclude this.
317+
if (currentUrl != "about:blank") {
318+
webDriver.getSessionStorage().clear()
319+
eventually() {
320+
webDriver.getSessionStorage().keySet.asScala shouldBe empty
321+
}
320322
}
321323
}
322-
}
323-
}.futureValue
324+
}.futureValue
325+
}
324326
logger.info("Cleared web drivers")
325327
}
326328

0 commit comments

Comments
 (0)