From b7b0ede5ac4d2afbce20d7b87153a772ce1abe5a Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Mon, 14 Oct 2024 10:46:49 -0700 Subject: [PATCH] Fix tests --- .../kotlin/dev/romainguy/kotlin/explorer/testing/Builder.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jvmTest/kotlin/dev/romainguy/kotlin/explorer/testing/Builder.kt b/src/jvmTest/kotlin/dev/romainguy/kotlin/explorer/testing/Builder.kt index 166bea8e..f476df29 100644 --- a/src/jvmTest/kotlin/dev/romainguy/kotlin/explorer/testing/Builder.kt +++ b/src/jvmTest/kotlin/dev/romainguy/kotlin/explorer/testing/Builder.kt @@ -34,7 +34,7 @@ interface Builder { fun getInstance(outputDirectory: Path) = try { LocalBuilder(outputDirectory) - } catch (e: Throwable) { + } catch (_: Throwable) { System.err.println("Failed to create local builder. Using Github builder") GithubBuilder() } @@ -82,7 +82,7 @@ class LocalBuilder(private val outputDirectory: Path) : Builder { } private suspend fun kotlinCompile(path: Path) { - val result = kotlinCompiler.compile(kotlinOnlyConsumers, "", path) + val result = kotlinCompiler.compile(true, "", path) if (result.exitCode != 0) { System.err.println(result.output) fail("kotlinc error")