From 702a61b06f14962f2e4929227972889d76bae666 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galder=20Zamarren=CC=83o?= Date: Wed, 26 Jul 2023 17:45:56 +0100 Subject: [PATCH] Balance values are Long rather than Int --- .../org/lightningdevkit/ldknode/LibraryTest.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt b/bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt index 1d8a0e681..79c861692 100644 --- a/bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt +++ b/bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt @@ -155,10 +155,10 @@ class LibraryTest { println("Spendable balance 2: $spendableBalance1") println("Total balance 1: $totalBalance1") println("Total balance 2: $totalBalance1") - assertEquals(100000u, spendableBalance1) - assertEquals(100000u, spendableBalance2) - assertEquals(100000u, totalBalance1) - assertEquals(100000u, totalBalance2) + assertEquals(100000uL, spendableBalance1) + assertEquals(100000uL, spendableBalance2) + assertEquals(100000uL, totalBalance1) + assertEquals(100000uL, totalBalance2) node1.connectOpenChannel(nodeId2, listenAddress2, 50000u, null, null, true) @@ -190,7 +190,7 @@ class LibraryTest { println("Spendable balance 2 after open: $spendableBalance2AfterOpen") assert(spendableBalance1AfterOpen > 49000u) assert(spendableBalance1AfterOpen < 50000u) - assertEquals(100000u, spendableBalance2AfterOpen) + assertEquals(100000uL, spendableBalance2AfterOpen) val channelReadyEvent1 = node1.waitNextEvent() println("Got event: $channelReadyEvent1") @@ -247,7 +247,7 @@ class LibraryTest { println("Spendable balance 2 after close: $spendableBalance2AfterClose") assert(spendableBalance1AfterClose > 95000u) assert(spendableBalance1AfterClose < 100000u) - assertEquals(101000u, spendableBalance2AfterClose) + assertEquals(101000uL, spendableBalance2AfterClose) node1.stop() node2.stop()