Skip to content

Commit

Permalink
fix: do not exit on fatal messages during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Jul 20, 2024
1 parent 8b516c2 commit 7658e99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/kotlin/e2e/E2ETest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class E2ETest {
// Execute the pipeline.
runBlocking {
try {
withTimeout(20_000) { exec(pipeline.path) }
withTimeout(30_000) { exec(pipeline.path) }
} catch (_: TimeoutCancellationException) {}
}

Expand Down
9 changes: 6 additions & 3 deletions src/test/kotlin/runner/impl/jvm/ArgumentsTest.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
package runner.impl.jvm

import kotlin.test.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import technology.idlab.exception.RunnerException
import technology.idlab.runner.impl.jvm.Arguments
import technology.idlab.util.Log

class ArgumentsTest {
@BeforeEach
fun setup() {
Log.shared.setFatalMode(Log.FatalMode.EXCEPTION)
}

@Test
fun single() {
val args = Arguments(mapOf("key" to listOf("value")))
Expand Down Expand Up @@ -98,9 +104,6 @@ class ArgumentsTest {

@Test
fun inheritance() {
// Do not exit on fatal messages.
Log.shared.setFatalMode(Log.FatalMode.EXCEPTION)

// The base class.
open class A

Expand Down

0 comments on commit 7658e99

Please sign in to comment.