Skip to content

Commit

Permalink
Revert the failing test and disable daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 committed Aug 19, 2024
1 parent 7a36b9c commit 7e22d58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
run: chmod +x gradlew

- name: Run unit tests
run: ./gradlew testDevDebugUnitTest
run: ./gradlew testDevDebugUnitTest --no-daemon
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import com.google.android.ground.shouldHaveTextAtPosition
import com.google.android.ground.ui.map.MapType
import com.google.common.truth.Truth.assertThat
import dagger.hilt.android.testing.HiltAndroidTest
import javax.inject.Inject
import org.hamcrest.Matchers.allOf
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import javax.inject.Inject

@HiltAndroidTest
@RunWith(RobolectricTestRunner::class)
Expand All @@ -60,7 +60,7 @@ class MapTypeDialogFragmentTest : BaseHiltTest() {
onView(withText("Base map")).check(matches(isDisplayed()))
onView(withId(R.id.recycler_view)).check(matches(allOf(isDisplayed(), hasChildCount(3))))
with(R.id.recycler_view) {
shouldHaveTextAtPosition("Road map 2", 0)
shouldHaveTextAtPosition("Road map", 0)
shouldHaveTextAtPosition("Terrain", 1)
shouldHaveTextAtPosition("Satellite", 2)
}
Expand Down

0 comments on commit 7e22d58

Please sign in to comment.