Skip to content

Commit

Permalink
KMM :: Fix :: Change visibility of IgnoreNetworkResponseDecoder to pu…
Browse files Browse the repository at this point in the history
…blic
  • Loading branch information
franmontiel committed Aug 25, 2023
1 parent 6e80a60 commit ed4e49c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.ktor.client.statement.HttpResponse
/**
* Helper class that ignores [HttpResponse] body and just return [Unit].
*/
class IgnoreNetworkResponseDecoder internal constructor() : NetworkResponseDecoder<Unit>() {
object IgnoreNetworkResponseDecoder : NetworkResponseDecoder<Unit>() {
override suspend fun decode(httpResponse: HttpResponse) {
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class PutNetworkDataSourceTest : BaseTest() {
pathUrl
)
val putNetworkDataSource = PutNetworkDataSource(
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder(), emptyList()
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder, emptyList()
)

val putResult = putNetworkDataSource.put(contentTypeQuery, null)
Expand All @@ -222,7 +222,7 @@ class PutNetworkDataSourceTest : BaseTest() {
pathUrl
)
val putNetworkDataSource = PutNetworkDataSource(
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder(), emptyList()
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder, emptyList()
)

val putResult = putNetworkDataSource.put(contentTypeQuery, null)
Expand All @@ -244,7 +244,7 @@ class PutNetworkDataSourceTest : BaseTest() {
pathUrl
)
val putNetworkDataSource = PutNetworkDataSource(
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder(), emptyList()
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder, emptyList()
)

val putResult = putNetworkDataSource.put(contentTypeQuery, null)
Expand All @@ -262,7 +262,7 @@ class PutNetworkDataSourceTest : BaseTest() {
pathUrl
)
val putNetworkDataSource = PutNetworkDataSource(
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder(), emptyList()
baseUrl, mockHttpClient(mockEngine), IgnoreNetworkResponseDecoder, emptyList()
)

val putResult = putNetworkDataSource.put(contentTypeQuery, null)
Expand Down

0 comments on commit ed4e49c

Please sign in to comment.