Skip to content

Commit 9919e73

Browse files
committed
Make parallel pages test actually parallel
1 parent 2447ca0 commit 9919e73

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/jvmTest/kotlin/IntegrationTests.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,14 @@ class IntegrationTests {
165165
// we want all coroutines to finish before we close the browser session
166166
withContext(Dispatchers.IO) {
167167
repeat(4) {
168-
browser.newPage().use { page ->
169-
page.goto("http://www.google.com")
170-
page.runtime.getHeapUsage()
171-
val docRoot = page.dom.getDocumentRootNodeId()
172-
page.dom.describeNode(DescribeNodeRequest(docRoot, depth = 2))
173-
page.storage.getCookies()
168+
launch {
169+
browser.newPage().use { page ->
170+
page.goto("http://www.google.com")
171+
page.runtime.getHeapUsage()
172+
val docRoot = page.dom.getDocumentRootNodeId()
173+
page.dom.describeNode(DescribeNodeRequest(docRoot, depth = 2))
174+
page.storage.getCookies()
175+
}
174176
}
175177
}
176178
}

0 commit comments

Comments
 (0)