mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 03:54:24 +08:00
Delete persisted hubs on exit
This commit is contained in:
parent
ed206de95b
commit
fefd552166
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,10 @@ defmodule Livebook.TeamsIntegrationHelper do
|
|||
context = new_user_hub(node)
|
||||
Hubs.save_hub(context.team)
|
||||
|
||||
ExUnit.Callbacks.on_exit(fn ->
|
||||
Hubs.delete_hub(context.team.id)
|
||||
end)
|
||||
|
||||
wait_until_client_start(context)
|
||||
end
|
||||
|
||||
|
@ -68,6 +72,10 @@ defmodule Livebook.TeamsIntegrationHelper do
|
|||
context = new_agent_hub(node, opts)
|
||||
Hubs.save_hub(context.team)
|
||||
|
||||
ExUnit.Callbacks.on_exit(fn ->
|
||||
Hubs.delete_hub(context.team.id)
|
||||
end)
|
||||
|
||||
wait_until_agent_start(context)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue