From 2142bc6b1f9bb8f1aca9c798f307a6208da03cec Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Mon, 2 Oct 2023 21:06:42 +0200 Subject: [PATCH] satisfy ktlint --- .../kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt index 35e84ff49..d4855fa2f 100644 --- a/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt +++ b/packages/patrol/android/src/main/kotlin/pl/leancode/patrol/CustomPatrolJUnitRunner.kt @@ -15,7 +15,6 @@ class CustomPatrolJUnitRunner : PatrolJUnitRunner() { private var testStorage: TestStorage? = null override fun onCreate(arguments: Bundle) { - // try { // val outputStream = testStorage!!.openOutputFile("patrol_state/teardowns.txt") // } catch (e: FileNotFoundException) { @@ -24,7 +23,7 @@ class CustomPatrolJUnitRunner : PatrolJUnitRunner() { val listeners = listOfNotNull( arguments.getCharSequence("listener"), - PatrolStoragePermissionListener::class.java.name, + PatrolStoragePermissionListener::class.java.name ).joinToString(separator = ",") arguments.putCharSequence("listener", listeners) @@ -45,12 +44,10 @@ class PatrolStoragePermissionListener : RunListener() { override fun testStarted(description: Description) { Logger.d("testStarted with description: $description") - - + val os = testStorage.openOutputFile("patrol.txt", true) os.write("testStarted with description: $description\n".toByteArray()) - InstrumentationRegistry.getInstrumentation().uiAutomation.apply { val testServicesPackage = "androidx.test.services" when {