From 10c4baf327deebe91ad6e2f37beb5a4b9ebc2d87 Mon Sep 17 00:00:00 2001 From: sonalyadav Date: Thu, 19 Dec 2024 19:35:22 +0530 Subject: [PATCH] fixed the function --- .../nrw/commons/nearby/NearbyParentFragmentPresenterTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/test/kotlin/fr/free/nrw/commons/nearby/NearbyParentFragmentPresenterTest.kt b/app/src/test/kotlin/fr/free/nrw/commons/nearby/NearbyParentFragmentPresenterTest.kt index d112ba507..6f64de113 100644 --- a/app/src/test/kotlin/fr/free/nrw/commons/nearby/NearbyParentFragmentPresenterTest.kt +++ b/app/src/test/kotlin/fr/free/nrw/commons/nearby/NearbyParentFragmentPresenterTest.kt @@ -310,8 +310,8 @@ class NearbyParentFragmentPresenterTest { whenever(nearbyParentFragmentView.getCameraTarget()).thenReturn(LatLng(2.0, 1.0, 0.0F)) // 111.19 km real distance, return false if 148253.333 > currentLocationSearchRadius NearbyController.currentLocationSearchRadius = 148307.0 - val isClose = nearbyPresenter?.searchCloseToCurrentLocation() - assertTrue(isClose!!) + val isClose = nearbyPresenter.searchCloseToCurrentLocation() + assertTrue(isClose) } fun expectMapAndListUpdate() {