From 1ed8034eab28023596befeb7bdf539922ddaefd7 Mon Sep 17 00:00:00 2001 From: Arnaud Morisset Date: Fri, 6 Nov 2020 15:01:35 +0100 Subject: [PATCH] Attach FakeGenSMTP to test supervision tree --- test/lib/bamboo/adapters/smtp_adapter_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/bamboo/adapters/smtp_adapter_test.exs b/test/lib/bamboo/adapters/smtp_adapter_test.exs index 3d70020..e9402c1 100644 --- a/test/lib/bamboo/adapters/smtp_adapter_test.exs +++ b/test/lib/bamboo/adapters/smtp_adapter_test.exs @@ -12,7 +12,7 @@ defmodule Bamboo.SMTPAdapterTest do {:ok, args} end - def start_link do + def start_link(_) do GenServer.start_link(__MODULE__, [], name: __MODULE__) end @@ -115,7 +115,7 @@ defmodule Bamboo.SMTPAdapterTest do ] setup do - FakeGenSMTP.start_link() + start_supervised!(FakeGenSMTP) :ok end