Skip to content

Commit

Permalink
satisfy ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Oct 2, 2023
1 parent a84464f commit 2142bc6
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand All @@ -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 {
Expand Down

0 comments on commit 2142bc6

Please sign in to comment.