Skip to content

Commit

Permalink
HelloWorkflowFragmentAppTest is no longer suppressed.
Browse files Browse the repository at this point in the history
It was choking on API 21 w/the old Leakcanary test rules, and we've stopped using those.

Fixes #582
  • Loading branch information
rjrjr committed Jan 31, 2022
1 parent be479f2 commit 35fe263
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package com.squareup.sample.helloworkflowfragment

import android.os.Build
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.SdkSuppress
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
import com.squareup.workflow1.ui.internal.test.DetectLeaksAfterTestSuccess
import com.squareup.workflow1.ui.internal.test.inAnyView
Expand All @@ -17,9 +15,6 @@ import org.junit.Test
import org.junit.rules.RuleChain
import org.junit.runner.RunWith

// Life is too short to debug why LeakCanary breaks this on API 21
// https://github.com/square/workflow-kotlin/issues/582
@SdkSuppress(minSdkVersion = Build.VERSION_CODES.M)
@RunWith(AndroidJUnit4::class)
@OptIn(WorkflowUiExperimentalApi::class)
class HelloWorkflowFragmentAppTest {
Expand Down

0 comments on commit 35fe263

Please sign in to comment.