Skip to content

Commit 42b2c8e

Browse files
committed
Fix unit test building and running
1 parent a3607c6 commit 42b2c8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
mavenCentral()
1414
}
1515
dependencies {
16-
classpath("com.android.tools.build:gradle:8.1.0")
16+
classpath("com.android.tools.build:gradle:8.1.1")
1717
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
1818
}
1919
}

main/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ android {
3737
}
3838

3939

40-
testOptions.unitTests.isIncludeAndroidResources = true
40+
//testOptions.unitTests.isIncludeAndroidResources = true
4141

4242
externalNativeBuild {
4343
cmake {

main/src/test/java/de/blinkt/openvpn/core/TestConfigParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class TestConfigParser {
252252

253253
val c:Context = ApplicationProvider.getApplicationContext()
254254
val err = vp.checkProfile(c, false)
255-
Assert.assertTrue("Failed with " + c.getString(err), err == R.string.no_error_found)
255+
Assert.assertTrue("Failed with wrong error code: $err", err == R.string.no_error_found)
256256
}
257257

258258
@Test

0 commit comments

Comments
 (0)