Skip to content

Commit

Permalink
Skip test that runs too slowly on K/N debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ephemient committed Dec 21, 2022
1 parent 83ac36c commit 6ab1d2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ class Day19Test {
}

@Test
fun part2() = runTest(dispatchTimeoutMs = 180_000L) {
@SlowTest
fun part2() = runTest {
assertEquals(3472, Day19(getTestInput(19)).part2())
}
}
5 changes: 5 additions & 0 deletions kt/src/commonTest/kotlin/com/github/ephemient/aoc2022/Test.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
package com.github.ephemient.aoc2022

expect fun getTestInput(day: Int, extra: String = ""): List<String>

@OptIn(ExperimentalMultiplatform::class)
@OptionalExpectation
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
expect annotation class SlowTest()
3 changes: 3 additions & 0 deletions kt/src/nativeTest/kotlin/com/github/ephemient/aoc2022/Test.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.github.ephemient.aoc2022

import kotlinx.cinterop.*
import platform.posix.*
import kotlin.test.Ignore

actual fun getTestInput(day: Int, extra: String): List<String> {
val dataDir = checkNotNull(
Expand Down Expand Up @@ -39,3 +40,5 @@ actual fun getTestInput(day: Int, extra: String): List<String> {
fclose(file)
}
}

actual typealias SlowTest = Ignore

0 comments on commit 6ab1d2d

Please sign in to comment.