https://kotlinlang.org logo
#android
Title
# android
a

Alexandru Gheorghe

03/22/2024, 11:21 AM
Hi all. I've written a bunch of
suspend
functions that
.await()
on Firestore methods (
get()
in particular). For this functionality, I've written a test using MockK that tests return of
null
. My test was working before, but after a few changes (just variable names), the test suddenly hangs and Gradle is stuck at "Executing tasks" and "Gradle Build Running". Another test I wrote fails and seems not to get stuck, it's just this one test that executes the await call. How can I debug where and why the asynchronous call hangs?
solved 2
Figured it out: it was the
addOnCompleteListener
.