Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test when run in Intellij (#2288) #2289

Merged
merged 1 commit into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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