From ff9edf5fe027c2fc0fff4859ee528c7efd606a78 Mon Sep 17 00:00:00 2001 From: Pawel Pasterz Date: Sun, 26 Apr 2020 22:51:34 +0200 Subject: [PATCH] Linting --- test_runner/src/main/kotlin/ftl/util/FlankException.kt | 2 +- test_runner/src/test/kotlin/ftl/util/UtilsTest.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_runner/src/main/kotlin/ftl/util/FlankException.kt b/test_runner/src/main/kotlin/ftl/util/FlankException.kt index 074e0bd803..2b7386c251 100644 --- a/test_runner/src/main/kotlin/ftl/util/FlankException.kt +++ b/test_runner/src/main/kotlin/ftl/util/FlankException.kt @@ -59,4 +59,4 @@ class FlankFatalError(message: String) : FlankException(message) * * @param message [String] message to be printed to [System.err] */ -class FlankCommonException(message: String) : FlankException(message) \ No newline at end of file +class FlankCommonException(message: String) : FlankException(message) diff --git a/test_runner/src/test/kotlin/ftl/util/UtilsTest.kt b/test_runner/src/test/kotlin/ftl/util/UtilsTest.kt index 0b39c817ea..b4b8fc5a65 100644 --- a/test_runner/src/test/kotlin/ftl/util/UtilsTest.kt +++ b/test_runner/src/test/kotlin/ftl/util/UtilsTest.kt @@ -244,7 +244,7 @@ class UtilsTest { val message = "not flank related error thrown" mockkObject(FtlConstants) every { FtlConstants.useMock } returns false - every { FtlConstants.bugsnag } returns mockk() { + every { FtlConstants.bugsnag } returns mockk { every { notify(any()) } returns true } exit.expectSystemExitWithStatus(3) @@ -283,7 +283,7 @@ class UtilsTest { // given val message = "No tests to run" exit.expectSystemExitWithStatus(1) - val block = {throw FlankCommonException(message)} + val block = { throw FlankCommonException(message) } // when withGlobalExceptionHandling(block) // then