Skip to content

Commit 560e189

Browse files
committed
Make the http tabs test more uniform
1 parent 9b84dbf commit 560e189

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jvmTest/kotlin/ZenikaIntegrationTests.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ class ZenikaIntegrationTests : LocalIntegrationTestBase() {
3939
fun httpTabEndpoints_basic() {
4040
runBlockingWithTimeout {
4141
val chrome = chromeHttp()
42-
val originalTabCount = chrome.targets().size
42+
chrome.closeAllTargets()
4343

4444
val newTab = chrome.newTab()
4545
assertEquals("about:blank", newTab.url.trimEnd('/'))
46-
assertTargetCount(originalTabCount + 1, chrome.targets())
46+
assertTargetCount(1, chrome.targets())
4747
chrome.closeTab(newTab.id)
4848

49-
assertTargetCount(originalTabCount, chrome.targets())
49+
assertTargetCount(0, chrome.targets())
5050
chrome.newTab()
5151
chrome.newTab()
5252
chrome.closeAllTargets()

0 commit comments

Comments
 (0)