Skip to content

Commit

Permalink
Update integration_test.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
balexand committed May 11, 2024
1 parent 82fabdd commit ecdfa45
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/integration_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,14 @@ defmodule Sanity.MutateIntegrationTest do
end

test "stream jpg asset", %{config: config} do
path = "test/fixtures/danielle-stein-10OL1q7oX6c-unsplash.jpg"

stream =
File.stream!(
"test/fixtures/danielle-stein-10OL1q7oX6c-unsplash.jpg",
[:raw, :read_ahead, :binary],
2048
)
if System.version() |> String.split(".") |> Enum.map(&String.to_integer/1) >= [1, 16, 0] do
File.stream!(path, 2048)
else
File.stream!(path, [:raw, :read_ahead, :binary], 2048)
end

assert %Sanity.Response{
body: %{
Expand Down

0 comments on commit ecdfa45

Please sign in to comment.