Skip to content

Commit

Permalink
chore: add failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Jan 2, 2024
1 parent 53af4b4 commit 84ac605
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/logflare_web/controllers/log_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ defmodule LogflareWeb.LogControllerTest do
end

test ":create ingestion with gzip", %{conn: conn, source: source} do

Check failure on line 100 in test/logflare_web/controllers/log_controller_test.exs

View workflow job for this annotation

GitHub Actions / Build and test

test v1 pipeline with legacy user.api_key :create ingestion with gzip (LogflareWeb.LogControllerTest)
payload = :zlib.gzip(Jason.encode!(%{"batch" => @valid_batch}))
batch = for _i <- 1..500, do: @valid
payload = :zlib.gzip(Jason.encode!(%{"batch" => batch}))
payload |> :erlang.term_to_binary() |> :erlang.external_size() |> dbg() # 178 bytes
conn =
conn
|> Plug.Conn.put_req_header("content-encoding", "gzip" )
Expand Down

0 comments on commit 84ac605

Please sign in to comment.