Skip to content

Commit

Permalink
Minor fix for GitHub Actions running slowly
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Dec 5, 2023
1 parent 212d262 commit 5489a91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/shared/src/test/scala/specs/MDCSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,16 @@ class MDCSpec extends AnyWordSpec with Matchers {
logger.info("One")
mdc.context("test" -> "testing2") {
logger.info("Two")
var finished = false
new Thread {
override def run(): Unit = logger.info("Three")
override def run(): Unit = {
logger.info("Three")
finished = true
}
}.start()
Thread.sleep(10)
while (!finished) {
Thread.sleep(10)
}
}
logger.info("Four")
}
Expand Down

0 comments on commit 5489a91

Please sign in to comment.