Skip to content

Commit

Permalink
Stop gen server explicitily to avoid postgres error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Jan 22, 2024
1 parent 5eb9299 commit 5276669
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/wanda/executions/server_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ defmodule Wanda.Executions.ServerTest do
)

assert pid == :global.whereis_name({Server, group_id})

stop_supervised(Server)
end
end

Expand Down Expand Up @@ -92,6 +94,8 @@ defmodule Wanda.Executions.ServerTest do
assert_receive :toniolorian

assert %Execution{execution_id: ^execution_id, status: :running} = Repo.one!(Execution)

stop_supervised(Server)
end

test "should not start an execution if an execution for that specific group_id is running" do
Expand All @@ -113,6 +117,8 @@ defmodule Wanda.Executions.ServerTest do

assert {:error, :already_running} =
Server.start_execution(UUID.uuid4(), group_id, targets, "cluster", %{})

stop_supervised(Server)
end

test "should exit when all facts are sent by all agents", context do
Expand Down

0 comments on commit 5276669

Please sign in to comment.