Skip to content

Commit

Permalink
chore: rename all modules post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jun 12, 2024
1 parent ddcdf64 commit e87b24e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ex/test/logflare_ex_test.exs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule LogflareExTest do
defmodule WarehouseExTest do
use WarehouseEx.BatcherCase
use Mimic
alias WarehouseEx.BatcherSup
Expand Down Expand Up @@ -96,21 +96,21 @@ defmodule LogflareExTest do
{:ok, %Tesla.Env{status: 500, body: "some server error"}}
end)

LogflareEx.TestUtils
WarehouseEx.TestUtils
|> expect(:stub_function, 2, fn data ->
%{different: "value", ref: data.ref}
end)

for cb <- [
{LogflareEx.TestUtils, :stub_function, 1},
&LogflareEx.TestUtils.stub_function/1,
{WarehouseEx.TestUtils, :stub_function, 1},
&WarehouseEx.TestUtils.stub_function/1,
fn data -> %{different: "value", ref: data.ref} end
] do
client = LogflareEx.client(api_key: "123", source_token: "123", on_prepare_payload: cb)
client = WarehouseEx.client(api_key: "123", source_token: "123", on_prepare_payload: cb)
ref = make_ref()

assert {:error, %Tesla.Env{}} =
LogflareEx.send_events(client, [%{some: "event", ref: ref}])
WarehouseEx.send_events(client, [%{some: "event", ref: ref}])

assert_receive {^ref, %{different: "value", ref: _}}
end
Expand Down

0 comments on commit e87b24e

Please sign in to comment.