Skip to content

Commit

Permalink
Fix unit test for network module
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Nov 2, 2023
1 parent 39e389e commit 027faeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package com.skydoves.pokedex.core.network

import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.skydoves.pokedex.core.test.MainCoroutinesRule
import com.skydoves.sandwich.adapters.ApiResponseCallAdapterFactory
import com.skydoves.sandwich.retrofit.adapters.ApiResponseCallAdapterFactory
import kotlinx.coroutines.ExperimentalCoroutinesApi
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ApiResponseTest {
@Test
fun exception() {
val exception = Exception("foo")
val apiResponse = ApiResponse.error<String>(exception)
val apiResponse = ApiResponse.exception(exception)
assertThat(apiResponse.message, `is`("foo"))
}

Expand Down

0 comments on commit 027faeb

Please sign in to comment.