diff --git a/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/festivallist/FestivalListViewModelTest.kt b/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/festivallist/FestivalListViewModelTest.kt index 56b5b060b..c08437b21 100644 --- a/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/festivallist/FestivalListViewModelTest.kt +++ b/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/festivallist/FestivalListViewModelTest.kt @@ -139,6 +139,7 @@ class FestivalListViewModelTest { // then assertThat(awaitItem()).isExactlyInstanceOf(FestivalListEvent.ShowTicketReserve::class.java) + cancelAndIgnoreRemainingEvents() } } diff --git a/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/mypage/MyPageViewModelTest.kt b/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/mypage/MyPageViewModelTest.kt index 2eb87bdae..f7a12cd1e 100644 --- a/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/mypage/MyPageViewModelTest.kt +++ b/android/festago/app/src/test/java/com/festago/festago/presentation/ui/home/mypage/MyPageViewModelTest.kt @@ -107,6 +107,7 @@ class MyPageViewModelTest { // then assertThat(awaitItem()).isExactlyInstanceOf(MyPageEvent.ShowSignIn::class.java) + cancelAndIgnoreRemainingEvents() } } @@ -243,6 +244,7 @@ class MyPageViewModelTest { assertThat(vm.uiState.value.shouldShowError).isEqualTo(true) } softly.assertAll() + cancelAndIgnoreRemainingEvents() } } @@ -254,6 +256,7 @@ class MyPageViewModelTest { // then assertThat(awaitItem()).isExactlyInstanceOf(MyPageEvent.ShowConfirmDelete::class.java) + cancelAndIgnoreRemainingEvents() } } @@ -281,6 +284,7 @@ class MyPageViewModelTest { assertThat(vm.uiState.value.shouldShowError).isEqualTo(true) } softly.assertAll() + cancelAndIgnoreRemainingEvents() } } }