Skip to content

Commit

Permalink
Add delay before starting tor process
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Apr 8, 2024
1 parent e2fb1da commit e71876c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ public object TestUtils {
val homeDir = INSTALLER.installationDir
val dataDir = homeDir.resolve("data")
val cacheDir = homeDir.resolve("cache")

withContext(Dispatchers.Default) { delay(250.milliseconds) }

val p = Process.Builder(paths.tor)
.args("--DataDirectory")
.args(dataDir.also { it.mkdirs() }.path)
Expand Down

0 comments on commit e71876c

Please sign in to comment.