diff options
author | Linnea Gräf <nea@nea.moe> | 2024-11-13 13:40:50 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-11-13 13:40:50 +0100 |
commit | d267913e206f5f7bfc16607c0dc058290e6b556f (patch) | |
tree | ae586ff39bb970f51b84f89c7e0b96130e9f4e3b /src/main/kotlin/util/ErrorUtil.kt | |
parent | db87e5293846e27dc684dd141744390ae6e8bc67 (diff) | |
download | Firmament-d267913e206f5f7bfc16607c0dc058290e6b556f.tar.gz Firmament-d267913e206f5f7bfc16607c0dc058290e6b556f.tar.bz2 Firmament-d267913e206f5f7bfc16607c0dc058290e6b556f.zip |
test: Add sack util test
Diffstat (limited to 'src/main/kotlin/util/ErrorUtil.kt')
-rw-r--r-- | src/main/kotlin/util/ErrorUtil.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/util/ErrorUtil.kt b/src/main/kotlin/util/ErrorUtil.kt index b06093b..5dc44d3 100644 --- a/src/main/kotlin/util/ErrorUtil.kt +++ b/src/main/kotlin/util/ErrorUtil.kt @@ -10,7 +10,7 @@ import moe.nea.firmament.Firmament @Suppress("NOTHING_TO_INLINE") // Suppressed since i want the logger to not pick up the ErrorUtil stack-frame object ErrorUtil { var aggressiveErrors = run { - Thread.currentThread().stackTrace.any { it.className.startsWith("org.junit.") } || Firmament.DEBUG + TestUtil.isInTest || Firmament.DEBUG || ErrorUtil::class.java.desiredAssertionStatus() } |