Skip to content

Commit

Permalink
Only Thread.sleep on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hearnadam authored and ckipp01 committed Feb 14, 2024
1 parent eb406f5 commit 2c13ab9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/scoverage/ScoverageSbtPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ object ScoverageSbtPlugin extends AutoPlugin {
implicit val log = streams.value.log

log.info(s"Waiting for measurement data to sync...")
Thread.sleep(
1000
) // have noticed some delay in writing on windows, hacky but works
if (System.getProperty("os.name").toLowerCase.contains("windows")) {
Thread.sleep(1000) // have noticed some delay in writing on windows, hacky but works
}

loadCoverage(
target,
Expand Down

0 comments on commit 2c13ab9

Please sign in to comment.