Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Sep 29, 2020
1 parent f141364 commit e24bfc6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
9 changes: 5 additions & 4 deletions test_runner/src/main/kotlin/ftl/ios/IosCatalog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ object IosCatalog {

fun softwareVersionsAsTable(projectId: String) = getVersionsList(projectId).asPrintableTable()

fun describeSoftwareVersion(projectId: String, versionId: String) = getVersionsList(projectId).getDescription(versionId)
fun describeSoftwareVersion(projectId: String, versionId: String) =
getVersionsList(projectId).getDescription(versionId)

private fun getVersionsList(projectId: String) = iosDeviceCatalog(projectId).versions

Expand All @@ -36,7 +37,8 @@ object IosCatalog {

private fun getLocales(projectId: String) = iosDeviceCatalog(projectId).runtimeConfiguration.locales

fun supportedOrientationsAsTable(projectId: String) = iosDeviceCatalog(projectId).runtimeConfiguration.orientations.asPrintableTable()
fun supportedOrientationsAsTable(projectId: String) =
iosDeviceCatalog(projectId).runtimeConfiguration.orientations.asPrintableTable()

fun supportedXcode(version: String, projectId: String) = xcodeVersions(projectId).contains(version)

Expand Down Expand Up @@ -71,8 +73,7 @@ If this project has already been granted access, please make sure you are using
on the Blaze or Flame billing plans, and that you have run
gcloud config set billing/quota_project project
If you are still having issues, please email [email protected] for support.""",
e
If you are still having issues, please email [email protected] for support.""", e
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ private fun TestExecutionData.reduceTestCases() = copy(
}
)

internal fun List<TestExecutionData>.removeStackTraces(): List<TestExecutionData> = map(TestExecutionData::removeStackTraces)
internal fun List<TestExecutionData>.removeStackTraces(): List<TestExecutionData> =
map(TestExecutionData::removeStackTraces)

private fun TestExecutionData.removeStackTraces() = copy(
testCases = testCases.onEach {
if (it.flaky) {
it.stackTraces = emptyList()
}
}
it.stackTraces = emptyList()
}
}
)

// For primary step return stepId instead of primaryStepId
Expand Down
4 changes: 2 additions & 2 deletions test_runner/src/test/kotlin/ftl/args/ArgsHelperTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ class ArgsHelperTest {
val merged = mergeYmlKeys(
mockk() {
every { keys } returns listOf("devices", "test", "apk")
every { group } returns "gcloud"
every { group } returns "gcloud"
},
mockk() {
every { keys } returns listOf("xcode-version", "async", "client-details")
every { group } returns "gcloud"
every { group } returns "gcloud"
}
)

Expand Down

0 comments on commit e24bfc6

Please sign in to comment.