diff options
author | Arne Schwabe <arne@rfc2549.org> | 2023-08-26 18:23:02 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2023-08-26 18:23:02 +0200 |
commit | 42b2c8ee062318bffd059a810033b615164cfb48 (patch) | |
tree | 5ce01c05cd2c84fb055b0af7cb8808140888a221 | |
parent | a3607c6850280f6c0144f95f2b5d2674de93a510 (diff) |
Fix unit test building and running
-rw-r--r-- | build.gradle.kts | 2 | ||||
-rw-r--r-- | main/build.gradle.kts | 2 | ||||
-rw-r--r-- | main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 3b41e700..b6c58bb8 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ buildscript { mavenCentral() } dependencies { - classpath("com.android.tools.build:gradle:8.1.0") + classpath("com.android.tools.build:gradle:8.1.1") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") } } 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 |