Open cedvdb opened 5 months ago
Related: https://github.com/atn832/fake_cloud_firestore/issues/93
For testing purpose this would allow:
pauseNetwork()
documentRef.get()
unpauseNetwork()
stopNetwork()
It seems to me this would furnish a good enough api for things like Related: https://github.com/atn832/fake_cloud_firestore/issues/93
Related: https://github.com/atn832/fake_cloud_firestore/issues/93
For testing purpose this would allow:
pauseNetwork()
puts fake_firestore in a loading state. Any async call, for exampledocumentRef.get()
returned future would not resolve until:unpauseNetwork()
the async results are unpausestopNetwork()
any async call would throwIt seems to me this would furnish a good enough api for things like Related: https://github.com/atn832/fake_cloud_firestore/issues/93