Skip to content

Commit

Permalink
Merge pull request #27 from kitakkun/feature/fix_ci_timeout
Browse files Browse the repository at this point in the history
Fix CI timeout issue
  • Loading branch information
kitakkun authored Apr 12, 2024
2 parents d1ec4ce + 9f0f19b commit b7b0bb8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import io.ktor.server.websocket.WebSockets
import io.ktor.server.websocket.webSocket
import io.ktor.websocket.Frame
import io.ktor.websocket.readText
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
Expand Down Expand Up @@ -65,7 +66,7 @@ class BackInTimeWebSocketClientTest {
@Test
fun `test success to send event`() {
testApplication {
val serverReceiveFlow = MutableSharedFlow<BackInTimeDebugServiceEvent>()
val serverReceiveFlow = MutableSharedFlow<BackInTimeDebugServiceEvent>(replay = 1)

configureServer(
host = TEST_HOST,
Expand Down Expand Up @@ -98,6 +99,7 @@ class BackInTimeWebSocketClientTest {
host = TEST_HOST,
port = TEST_PORT,
serverSession = {
delay(1000)
send(Frame.Text(Json.encodeToString<BackInTimeDebuggerEvent>(BackInTimeDebuggerEvent.Ping)))
},
)
Expand Down

0 comments on commit b7b0bb8

Please sign in to comment.