Skip to content

Commit fefd552

Browse files
committed
Delete persisted hubs on exit
1 parent ed206de commit fefd552

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/support/integration/teams_tests.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ defmodule Livebook.TeamsIntegrationHelper do
2727
context = new_user_hub(node)
2828
Hubs.save_hub(context.team)
2929

30+
ExUnit.Callbacks.on_exit(fn ->
31+
Hubs.delete_hub(context.team.id)
32+
end)
33+
3034
wait_until_client_start(context)
3135
end
3236

@@ -68,6 +72,10 @@ defmodule Livebook.TeamsIntegrationHelper do
6872
context = new_agent_hub(node, opts)
6973
Hubs.save_hub(context.team)
7074

75+
ExUnit.Callbacks.on_exit(fn ->
76+
Hubs.delete_hub(context.team.id)
77+
end)
78+
7179
wait_until_agent_start(context)
7280
end
7381

0 commit comments

Comments
 (0)