Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed May 21, 2024
1 parent f0d697f commit 5a7f981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions test/logflare/backends/adaptor/datadog_adaptor_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion test/logflare/backends/webhook_adaptor_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5a7f981

Please sign in to comment.