summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2023-08-26 18:23:02 +0200
committerArne Schwabe <arne@rfc2549.org>2023-08-26 18:23:02 +0200
commit42b2c8ee062318bffd059a810033b615164cfb48 (patch)
tree5ce01c05cd2c84fb055b0af7cb8808140888a221 /main
parenta3607c6850280f6c0144f95f2b5d2674de93a510 (diff)
Fix unit test building and running
Diffstat (limited to 'main')
-rw-r--r--main/build.gradle.kts2
-rw-r--r--main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/main/build.gradle.kts b/main/build.gradle.kts
index 1b0989bf..aa084585 100644
--- a/main/build.gradle.kts
+++ b/main/build.gradle.kts
@@ -37,7 +37,7 @@ android {
}
- testOptions.unitTests.isIncludeAndroidResources = true
+ //testOptions.unitTests.isIncludeAndroidResources = true
externalNativeBuild {
cmake {
diff --git a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
index 53bfd00a..fcc27878 100644
--- a/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
+++ b/main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt
@@ -252,7 +252,7 @@ class TestConfigParser {
val c:Context = ApplicationProvider.getApplicationContext()
val err = vp.checkProfile(c, false)
- Assert.assertTrue("Failed with " + c.getString(err), err == R.string.no_error_found)
+ Assert.assertTrue("Failed with wrong error code: $err", err == R.string.no_error_found)
}
@Test