Skip to content

Commit 8957dda

Browse files
committed
Attempt at fixing the tab close test
1 parent dc040aa commit 8957dda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jvmTest/kotlin/ZenikaIntegrationTests.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.hildan.chrome.devtools.protocol.ChromeDPTarget
1+
import kotlinx.coroutines.delay
22
import org.junit.jupiter.api.Test
33
import org.testcontainers.containers.*
44
import org.testcontainers.junit.jupiter.*
@@ -50,6 +50,7 @@ class ZenikaIntegrationTests : LocalIntegrationTestBase() {
5050
)
5151

5252
chrome.closeTab(googleTab.id)
53+
delay(100) // wait for the tab to actually close (fails on CI otherwise)
5354

5455
val targetsAfterClose = chrome.targets()
5556
assertTrue(

0 commit comments

Comments
 (0)