From 527666951ac6fe53413baf0b6877a296a5dcc40d Mon Sep 17 00:00:00 2001 From: arbulu89 Date: Mon, 22 Jan 2024 14:24:08 +0100 Subject: [PATCH] Stop gen server explicitily to avoid postgres error logs --- test/wanda/executions/server_test.exs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/wanda/executions/server_test.exs b/test/wanda/executions/server_test.exs index 9c8215a8..ad6bcbca 100644 --- a/test/wanda/executions/server_test.exs +++ b/test/wanda/executions/server_test.exs @@ -57,6 +57,8 @@ defmodule Wanda.Executions.ServerTest do ) assert pid == :global.whereis_name({Server, group_id}) + + stop_supervised(Server) end end @@ -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 @@ -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