From 939b61102cc66c0d4cde07b6ffb83b0639e7cc15 Mon Sep 17 00:00:00 2001 From: Ndiritu Date: Mon, 7 Oct 2024 21:46:43 +0300 Subject: [PATCH] fix viewmodel test --- .../src/test/java/com/devmike/repository/SearchViewModelTest.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/feature/repository/src/test/java/com/devmike/repository/SearchViewModelTest.kt b/feature/repository/src/test/java/com/devmike/repository/SearchViewModelTest.kt index 769e336..e1ec057 100644 --- a/feature/repository/src/test/java/com/devmike/repository/SearchViewModelTest.kt +++ b/feature/repository/src/test/java/com/devmike/repository/SearchViewModelTest.kt @@ -65,6 +65,7 @@ class SearchViewModelTest { // When search query is modified viewModel.modifySearchQuery(query) + advanceUntilIdle() // Then searchQuery should be updated Truth.assertThat(viewModel.searchQuery).isEqualTo(query)