Skip to content

Commit

Permalink
Merge pull request lightningdevkit#206 from tnull/2023-11-update-andr…
Browse files Browse the repository at this point in the history
…oid-start-stop-test

Update Android start-stop test to reflect current API
  • Loading branch information
tnull authored Nov 24, 2023
2 parents 87217de + 8e21de8 commit 67b079a
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import androidx.test.ext.junit.runners.AndroidJUnit4
@RunWith(AndroidJUnit4::class)
class AndroidLibTest {
@Test fun node_start_stop() {
val network = Network.REGTEST

val tmpDir1 = createTempDirectory("ldk_node").toString()
println("Random dir 1: $tmpDir1")
val tmpDir2 = createTempDirectory("ldk_node").toString()
Expand All @@ -26,8 +24,17 @@ class AndroidLibTest {
val listenAddress1 = "127.0.0.1:2323"
val listenAddress2 = "127.0.0.1:2324"

val config1 = Config(tmpDir1, network, listOf(listenAddress1), 2048u)
val config2 = Config(tmpDir2, network, listOf(listenAddress2), 2048u)
val config1 = Config()
config1.storageDirPath = tmpDir1
config1.listeningAddresses = listOf(listenAddress1)
config1.network = Network.REGTEST
config1.logLevel = LogLevel.TRACE

val config2 = Config()
config2.storageDirPath = tmpDir2
config2.listeningAddresses = listOf(listenAddress2)
config2.network = Network.REGTEST
config2.logLevel = LogLevel.TRACE

val builder1 = Builder.fromConfig(config1)
val builder2 = Builder.fromConfig(config2)
Expand Down

0 comments on commit 67b079a

Please sign in to comment.