mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Do not use generic Exception
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ class DefaultSessionWellknownRetrieverTest {
|
|||||||
Result.success("{}".toByteArray())
|
Result.success("{}".toByteArray())
|
||||||
},
|
},
|
||||||
cacheStore = cacheStore,
|
cacheStore = cacheStore,
|
||||||
jsonProvider = JsonProvider { throw Exception("Failed to parse JSON") }
|
jsonProvider = JsonProvider { error("Failed to parse JSON") }
|
||||||
)
|
)
|
||||||
assertThat(sut.getElementWellKnown()).isInstanceOf(WellknownRetrieverResult.Error::class.java)
|
assertThat(sut.getElementWellKnown()).isInstanceOf(WellknownRetrieverResult.Error::class.java)
|
||||||
// Ensure that the cache is deleted after the failure to parse it
|
// Ensure that the cache is deleted after the failure to parse it
|
||||||
|
|||||||
Reference in New Issue
Block a user