# android

Alexandru Gheorghe

03/22/2024, 2:07 PM
Hi folks. Does anyone know how to use MockK library in conjunction with a Firestore call that has
addOnCompleteListener { }
? My tests hang with this instruction and I've hit a case where I need the listener - can't go without it. However, with the listener, the test will hang forever. Have you ran into this and what was your solution?
solved 1
Seems it can be done by adding
to the mock as a call using `any()`: