Simplify TestKitBinaries

This commit is contained in:
Chris Stewart 2024-07-18 12:12:09 -05:00
parent a74c54da54
commit 3bb9857346

View file

@ -2,8 +2,7 @@ package org.bitcoins.testkit.util
import org.bitcoins.commons.config.AppConfig
import java.nio.file.{Path, Paths}
import scala.util.Properties
import java.nio.file.{Path}
object TestkitBinaries {
@ -12,15 +11,5 @@ object TestkitBinaries {
/** The base directory where binaries needed in tests are located.
*/
lazy val baseBinaryDirectory: Path = {
val home = Paths.get(Properties.userHome)
fromRoot(home)
}
/** Gives you an arbitrary root path, and then tacks on .bitcoin-s/binaries/
* onto the end of it
*/
private def fromRoot(path: Path): Path = {
path.resolve(base)
}
lazy val baseBinaryDirectory: Path = base
}