Skip to content

Commit

Permalink
fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentlauvlwj committed Aug 26, 2023
1 parent 9d6b8f3 commit 5c3416f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ abstract class BaseKspTest {

protected fun kspFailing(message: String, @Language("kotlin") code: String, vararg options: Pair<String, String>) {
val result = compile(code, mapOf(*options))
assert(result.exitCode == KotlinCompilation.ExitCode.OK)
assert(result.exitCode == KotlinCompilation.ExitCode.COMPILATION_ERROR)
assert(result.messages.contains("e: Error occurred in KSP, check log for detail"))
assert(result.messages.contains(message))
}
Expand Down

0 comments on commit 5c3416f

Please sign in to comment.