Skip to content

Commit

Permalink
Increase the timeout to 10sec
Browse files Browse the repository at this point in the history
  • Loading branch information
seladb committed Jan 29, 2025
1 parent fa18848 commit bf95943
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.pcapplusplus.toyvpn

import kotlinx.coroutines.delay

suspend fun waitFor(condition: () -> Boolean, timeoutMillis: Long = 5000L) {
suspend fun waitFor(condition: () -> Boolean, timeoutMillis: Long = 10000L) {
var elapsedTime = 0L
while (!condition() && elapsedTime < timeoutMillis) {
delay(10)
Expand Down

0 comments on commit bf95943

Please sign in to comment.