Removes main thread checks on Verification due to the need to mock this method when running tests.
This commit is contained in:
@@ -33,7 +33,7 @@ class Nip05Verifier() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun fetchNip05JsonSuspend(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
|
private suspend fun fetchNip05JsonSuspend(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
|
||||||
checkNotInMainThread()
|
// checkNotInMainThread()
|
||||||
|
|
||||||
val url = assembleUrl(nip05)
|
val url = assembleUrl(nip05)
|
||||||
|
|
||||||
@@ -72,7 +72,9 @@ class Nip05Verifier() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun verifyNip05(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
|
fun verifyNip05(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
|
||||||
checkNotInMainThread()
|
// check fails on tests
|
||||||
|
// checkNotInMainThread()
|
||||||
|
|
||||||
val mapper = jacksonObjectMapper()
|
val mapper = jacksonObjectMapper()
|
||||||
|
|
||||||
fetchNip05Json(
|
fetchNip05Json(
|
||||||
|
|||||||
Reference in New Issue
Block a user