In my cleanup function I would like to clear Firebase Realtime Database (emulator).. but to be sure it has succeeded before it goes to the next test, I have to call await..
@After
fun cleanup() {
...
instance.reference.setValue(null).await()
}
However, the cleanup function can not be suspend function.. so how could I achieve this?
thanks!
from How to use await in JUnit cleanup?
No comments:
Post a Comment