bitcoindevkit / bdk-jni

JNI bindings for bdk
Other
8 stars 8 forks source link

Current build on master branch breaks because of failed tests #43

Closed thunderbiscuit closed 3 years ago

thunderbiscuit commented 3 years ago

Issue lies here:

// jvm/src/test/java/org/bitcoindevkit/bdkjni/JvmLibTest.kt

class JvmLibTest : LibTest() {
    override fun getTestDataDir(): String {
        return Paths.get(System.getProperty("java.io.tmpdir"), "bdk-test").toString()
    }
}

Temporary fix is to add @Before annotation here:

// test-fixtures/src/main/java/org/bitcoindevkit/bdkjni/LibTest.kt

@Before
fun cleanupTestDataDir() {
    File(getTestDataDir()).deleteRecursively()
}

Long-term fix I'm not sure.

thunderbiscuit commented 3 years ago

Fixed with #40.