From e557eba4377cedcdaf46eee34856de1b7dfb5921 Mon Sep 17 00:00:00 2001 From: Steffen Beyer Date: Tue, 17 Mar 2026 03:13:45 +0100 Subject: [PATCH] Fix connection test harness startup assumptions --- test/parrhesia/web/connection_test.exs | 28 -------------------------- 1 file changed, 28 deletions(-) diff --git a/test/parrhesia/web/connection_test.exs b/test/parrhesia/web/connection_test.exs index 82802c6..ec153b6 100644 --- a/test/parrhesia/web/connection_test.exs +++ b/test/parrhesia/web/connection_test.exs @@ -12,9 +12,7 @@ defmodule Parrhesia.Web.ConnectionTest do alias Parrhesia.Web.Connection setup do - ensure_repo_started() :ok = Sandbox.checkout(Repo) - ensure_stream_runtime_started() :ok end @@ -876,32 +874,6 @@ defmodule Parrhesia.Web.ConnectionTest do state end - defp ensure_stream_runtime_started do - if is_nil(Process.whereis(Parrhesia.Subscriptions.Supervisor)) do - start_supervised!({Parrhesia.Subscriptions.Supervisor, []}) - end - - if is_nil(Process.whereis(Parrhesia.Subscriptions.Index)) do - start_supervised!({Parrhesia.Subscriptions.Index, name: Parrhesia.Subscriptions.Index}) - end - - if is_nil(Process.whereis(Parrhesia.API.Stream.Registry)) do - start_supervised!({Registry, keys: :unique, name: Parrhesia.API.Stream.Registry}) - end - - if is_nil(Process.whereis(Parrhesia.API.Stream.Supervisor)) do - start_supervised!( - {DynamicSupervisor, strategy: :one_for_one, name: Parrhesia.API.Stream.Supervisor} - ) - end - end - - defp ensure_repo_started do - if is_nil(Process.whereis(Repo)) do - start_supervised!(Repo) - end - end - defp listener(overrides) do base = %{ id: :test,