You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way to fix it, is to move the db.close() inside the body of the testWidgets. But if the test fail for another reason, db.close() may never be called so I don't think it's great either...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say I have a widget that watches a table:
If I test that widget like so:
I will get this error:
The only way to fix it, is to move the
db.close()
inside the body of thetestWidgets
. But if the test fail for another reason,db.close()
may never be called so I don't think it's great either...Is there a better way of doing this?
Here's the link to a minimum reproducible example: https://github.com/GP4cK/drift_stream_timer_issue
Beta Was this translation helpful? Give feedback.
All reactions