Removes main thread checks on Verification due to the need to mock this method when running tests.

This commit is contained in:
Vitor Pamplona 2023-06-07 13:59:12 -04:00
parent 6a7d6a843d
commit 931bd58c51

View File

@ -33,7 +33,7 @@ class Nip05Verifier() {
}
private suspend fun fetchNip05JsonSuspend(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
checkNotInMainThread()
// checkNotInMainThread()
val url = assembleUrl(nip05)
@ -72,7 +72,9 @@ class Nip05Verifier() {
}
fun verifyNip05(nip05: String, onSuccess: (String) -> Unit, onError: (String) -> Unit) {
checkNotInMainThread()
// check fails on tests
// checkNotInMainThread()
val mapper = jacksonObjectMapper()
fetchNip05Json(