Skip to content

Commit 0557bb0

Browse files
committed
.
1 parent 8940a39 commit 0557bb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

project/test/src/liveServer.test.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import com.microsoft.playwright.assertions.PlaywrightAssertions.assertThat
1010

1111
import cats.effect.IO
1212
import cats.effect.unsafe.implicits.global
13-
import com.microsoft.playwright.Locator.WaitForOptions
1413
import com.microsoft.playwright.assertions.LocatorAssertions.ContainsTextOptions
1514

1615
/*
@@ -78,7 +77,7 @@ class PlaywrightTest extends munit.FunSuite:
7877
)
7978
.unsafeToFuture()
8079

81-
Thread.sleep(500)
80+
Thread.sleep(1500)
8281
val increaseTimeout = ContainsTextOptions()
8382
increaseTimeout.setTimeout(30000)
8483

@@ -114,7 +113,7 @@ class PlaywrightTest extends munit.FunSuite:
114113
)
115114
.unsafeToFuture()
116115

117-
Thread.sleep(4000) // give the thing time to start.
116+
Thread.sleep(1000) // give the thing time to start.
118117

119118
val out = requests.get(s"http://localhost:$thisTestPort/api/hello", check = false)
120119
assertEquals(out.statusCode, 404)
@@ -161,7 +160,7 @@ class PlaywrightTest extends munit.FunSuite:
161160
)
162161
.unsafeToFuture()
163162

164-
Thread.sleep(4000) // give the thing time to start.
163+
Thread.sleep(1000) // give the thing time to start.
165164

166165
val out = requests.get(s"http://localhost:$thisTestPort/api/hello", check = false)
167166
assertEquals(out.statusCode, 200)

0 commit comments

Comments
 (0)