Skip to content

Commit 3e7d13d

Browse files
committed
fixup! Prevent other tests from failing
1 parent c63a580 commit 3e7d13d

File tree

1 file changed

+16
-0
lines changed
  • bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode

1 file changed

+16
-0
lines changed

bindings/kotlin/ldk-node-jvm/lib/src/test/kotlin/org/lightningdevkit/ldknode/LibraryTest.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,29 @@ class LibraryTest {
176176
config1.storageDirPath = tmpDir1
177177
config1.listeningAddresses = listOf(listenAddress1)
178178
config1.network = Network.REGTEST
179+
if (System.getenv("HRN_TESTS") == null) {
180+
config1.hrnConfig = HumanReadableNamesConfig(
181+
resolutionConfig = HrnResolverConfig.Dns(
182+
dnsServerAddress = "8.8.8.8:53",
183+
enableHrnResolutionService = false
184+
)
185+
)
186+
}
179187

180188
println("Config 1: $config1")
181189

182190
val config2 = defaultConfig()
183191
config2.storageDirPath = tmpDir2
184192
config2.listeningAddresses = listOf(listenAddress2)
185193
config2.network = Network.REGTEST
194+
if (System.getenv("HRN_TESTS") == null) {
195+
config2.hrnConfig = HumanReadableNamesConfig(
196+
resolutionConfig = HrnResolverConfig.Dns(
197+
dnsServerAddress = "8.8.8.8:53",
198+
enableHrnResolutionService = false
199+
)
200+
)
201+
}
186202
println("Config 2: $config2")
187203

188204
val builder1 = Builder.fromConfig(config1)

0 commit comments

Comments
 (0)