File tree Expand file tree Collapse file tree
test/java/to/bitkit/repositories Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import dagger.hilt.components.SingletonComponent
1414import kotlinx.serialization.Serializable
1515import kotlinx.serialization.json.Json
1616import to.bitkit.async.ServiceQueue
17+ import to.bitkit.models.msatCeilOf
1718import to.bitkit.repositories.LightningRepo
1819import to.bitkit.repositories.ProbeOutcome
1920import to.bitkit.utils.Logger
@@ -101,7 +102,7 @@ private sealed interface DevCommand {
101102 )
102103
103104 override suspend fun execute (deps : DevToolsProvider .Dependencies ): DevResult {
104- val amountSats = args.amountSats ? : args.amountMsat?.div( 1_000u )
105+ val amountSats = args.amountSats ? : args.amountMsat?.let { msatCeilOf(it) }
105106 val timeout = args.timeoutSeconds.coerceAtLeast(1 ).seconds
106107
107108 Logger .info(
Original file line number Diff line number Diff line change @@ -1277,7 +1277,7 @@ class LightningRepoTest : BaseUnitTest() {
12771277
12781278 assertTrue(result.isSuccess)
12791279 assertEquals(setOf (probePaymentA), result.getOrThrow().paymentIds)
1280- verifyBlocking (lightningService) { sendProbesUsingAmount(" lnbc1" , 42_000uL ) }
1280+ verify (lightningService). sendProbesUsingAmount(" lnbc1" , 42_000uL )
12811281 }
12821282
12831283 @Test
You can’t perform that action at this time.
0 commit comments