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() {