Skip to content

Commit

Permalink
#829 fix OutcomeDetailsFormatter.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Jun 24, 2020
1 parent bc414fa commit 252771d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test_runner/src/main/kotlin/ftl/util/OutcomeDetailsFormatter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ private val TestSuiteOverviewData.successCount

private fun FailureDetail?.getFailureOutcomeDetails(testSuiteOverviewData: TestSuiteOverviewData?) = when {
this == null -> testSuiteOverviewData?.buildFailureOutcomeDetailsSummary()
crashed -> "Application crashed"
timedOut -> "Test timed out"
notInstalled -> "App failed to install"
crashed == true -> "Application crashed"
timedOut == true -> "Test timed out"
notInstalled == true -> "App failed to install"
else -> testSuiteOverviewData?.buildFailureOutcomeDetailsSummary()
} + this?.takeIf { it.otherNativeCrash }?.let { NATIVE_CRASH_MESSAGE }.orEmpty()

Expand All @@ -54,8 +54,8 @@ private fun TestSuiteOverviewData.buildFailureOutcomeDetailsSummary(): String {

private fun InconclusiveDetail?.formatOutcomeDetails() = when {
this == null -> "Unknown reason"
infrastructureFailure -> "Infrastructure failure"
abortedByUser -> "Test run aborted by user"
infrastructureFailure == true -> "Infrastructure failure"
abortedByUser == true -> "Test run aborted by user"
else -> "Unknown reason"
}

Expand Down

0 comments on commit 252771d

Please sign in to comment.