diff --git a/sdk/src/test/java/com/magicbell/sdk/feature/store/NotificationStoreRealTimeTests.kt b/sdk/src/test/java/com/magicbell/sdk/feature/store/NotificationStoreRealTimeTests.kt index 47b6bdd..d2939ee 100644 --- a/sdk/src/test/java/com/magicbell/sdk/feature/store/NotificationStoreRealTimeTests.kt +++ b/sdk/src/test/java/com/magicbell/sdk/feature/store/NotificationStoreRealTimeTests.kt @@ -224,6 +224,9 @@ internal class NotificationStoreRealTimeTests { @Test fun test_notifyReadNotification_withDefaultStorePredicateAndDoesntExists_shouldRefresh() = runBlocking { + + // Broken on CI + // GIVEN val predicate = StorePredicate() val storePage = givenPageStore(predicate, defaultEdgeArraySize) @@ -238,7 +241,7 @@ internal class NotificationStoreRealTimeTests { storeRealTime.processMessage(RealTimeEventMock.ReadNotification("Not exists")) // THEN - coVerify(exactly = 2) { fetchStorePageInteractor.invoke(any(), any(), any()) } + coVerify(exactly = 2, timeout = 1000) { fetchStorePageInteractor.invoke(any(), any(), any()) } store.size.shouldBeExactly(defaultEdgeArraySize) store.totalCount.shouldBeExactly(initialCounter.totalCount) storePage.edges.mapIndexed { index, edge -> @@ -314,7 +317,7 @@ internal class NotificationStoreRealTimeTests { storeRealTime.processMessage(RealTimeEventMock.UnreadNotification("Not exists")) // THEN - coVerify(exactly = 2) { fetchStorePageInteractor.invoke(any(), any(), any()) } + coVerify(exactly = 2, timeout = 1000) { fetchStorePageInteractor.invoke(any(), any(), any()) } store.size.shouldBeExactly(defaultEdgeArraySize) Unit } @@ -449,7 +452,7 @@ internal class NotificationStoreRealTimeTests { storeRealTime.processMessage(RealTimeEventMock.SeenAllNotification) // THEN - coVerify(exactly = 2) { fetchStorePageInteractor.invoke(any(), any(), any()) } + coVerify(exactly = 2, timeout = 1000) { fetchStorePageInteractor.invoke(any(), any(), any()) } store.size.shouldBeExactly(defaultEdgeArraySize) store.forEach { notification -> notification.seenAt.shouldNotBeNull()