Skip to content

Commit 3e37caa

Browse files
committed
test(gradle): Fix inert violation substring in isolated-projects assert
The old check for "problems were found reporting" never matches Gradle output — the actual phrases are "problems were found storing the configuration cache" or "problems were found reusing the configuration cache". Broadening to "problems were found " catches both, so the defensive check actually has teeth now.
1 parent 9679075 commit 3e37caa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

plugin-build/src/test/kotlin/io/sentry/android/gradle/integration/SentryPluginIsolatedProjectsTest.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ class SentryPluginIsolatedProjectsTest :
3636
// otherwise the test would silently degrade into a plain config-cache test.
3737
assertTrue(output) { "isolated projects" in output.lowercase() }
3838
assertFalse(
39-
"problems were found reporting" in output ||
40-
"Isolated projects violations" in output ||
41-
"cannot access '" in output,
39+
"problems were found " in output || "cannot access '" in output,
4240
"Expected no isolated-projects violations, but got:\n$output",
4341
)
4442
}

0 commit comments

Comments
 (0)