mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-15 12:20:06 +01:00
Simplify TestKitBinaries
This commit is contained in:
parent
a74c54da54
commit
3bb9857346
1 changed files with 2 additions and 13 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue