Skip to content

Commit

Permalink
improve flaky test due to thread not finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
munnsmunns committed Jul 2, 2024
1 parent c9b5110 commit 1e8567f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bmds_ui/desktop/components/database_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def create_db(self) -> None:
config.add_db(db)
Config.sync()
create_django_db(config, db)
self.dismiss(True)
self.app.call_from_thread(self.dismiss, result=True)

async def on_worker_state_changed(self, message: Worker.StateChanged):
# ensure loading indicator is removed when finished
Expand Down

0 comments on commit 1e8567f

Please sign in to comment.