Skip to content

Commit

Permalink
Fix test when run in Intellij (#2288) (#2289)
Browse files Browse the repository at this point in the history
The path needed to be adjusted from "target" to "eclair-core/target".
Also fixed a typo in a comment.
  • Loading branch information
barrybecker4 authored May 30, 2022
1 parent 9c7ddcd commit 45f19f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import fr.acinq.bitcoin.scalacompat.{Btc, BtcAmount, MilliBtc, Satoshi, btc2sato
*/

/**
* One MilliSatoshi is a thousand of a Satoshi, the smallest unit usable in bitcoin
* One MilliSatoshi is a thousandth of a Satoshi, the smallest unit usable in bitcoin
*/
case class MilliSatoshi(private val underlying: Long) extends Ordered[MilliSatoshi] {

Expand Down
2 changes: 1 addition & 1 deletion eclair-core/src/test/scala/fr/acinq/eclair/TestUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object TestUtils {
val BUILD_DIRECTORY = sys
.props
.get("buildDirectory") // this is defined if we run from maven
.getOrElse(new File(sys.props("user.dir"), "target").getAbsolutePath) // otherwise we probably are in intellij, so we build it manually assuming that user.dir == path to the module
.getOrElse(new File(sys.props("user.dir"), "eclair-core/target").getAbsolutePath) // otherwise we probably are in intellij, so we build it manually assuming that user.dir == path to the module

def availablePort: Int = synchronized {
var serverSocket: ServerSocket = null
Expand Down

0 comments on commit 45f19f6

Please sign in to comment.