diff --git a/test/logflare/backends/adaptor/datadog_adaptor_test.exs b/test/logflare/backends/adaptor/datadog_adaptor_test.exs index 30875d2cf..cae5d9d5f 100644 --- a/test/logflare/backends/adaptor/datadog_adaptor_test.exs +++ b/test/logflare/backends/adaptor/datadog_adaptor_test.exs @@ -62,14 +62,12 @@ defmodule Logflare.Backends.Adaptor.DatadogAdaptorTest do this = self() ref = make_ref() - @client |> expect(:send, fn req -> send(this, {ref, req[:body]}) %Tesla.Env{status: 200, body: ""} end) - le = build(:log_event, source: source) assert :ok == @subject.ingest(pid, [le], source_id: source.id, backend_id: backend.id) diff --git a/test/logflare/backends/webhook_adaptor_test.exs b/test/logflare/backends/webhook_adaptor_test.exs index 9c330b64c..573a47154 100644 --- a/test/logflare/backends/webhook_adaptor_test.exs +++ b/test/logflare/backends/webhook_adaptor_test.exs @@ -12,7 +12,11 @@ defmodule Logflare.Backends.WebhookAdaptorTest do source = insert(:source, user: user) backend = - insert(:backend, type: :webhook, sources: [source], config: %{http: "http1", url: "https://example.com"}) + insert(:backend, + type: :webhook, + sources: [source], + config: %{http: "http1", url: "https://example.com"} + ) pid = start_supervised!({@subject, {source, backend}}) :timer.sleep(500)