diff --git a/app/src/test/java/com/appttude/h_mal/atlas_weather/utils/testUtils.kt b/app/src/test/java/com/appttude/h_mal/atlas_weather/utils/testUtils.kt index 7eb9191..5d41b72 100644 --- a/app/src/test/java/com/appttude/h_mal/atlas_weather/utils/testUtils.kt +++ b/app/src/test/java/com/appttude/h_mal/atlas_weather/utils/testUtils.kt @@ -16,7 +16,7 @@ fun LiveData.getOrAwaitValue( var data: T? = null val latch = CountDownLatch(1) val observer = object : Observer { - override fun onChanged(o: T?) { + override fun onChanged(o: T) { data = o latch.countDown() this@getOrAwaitValue.removeObserver(this)