Skip to content

Commit e023fdf

Browse files
committed
fix: api test should expect accept-encoding header
Tesla now sends a default accept-encoding header, so the tests need to expect it.
1 parent 01b3a19 commit e023fdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clients/gax/test/gax/api_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ defmodule Gax.ApiTest do
3535
mock(fn %{
3636
method: :get,
3737
url: "https://example.com/v1/stores/store-1/pets",
38-
headers: [{"x-goog-api-client", ^api_client}]
38+
headers: [{"x-goog-api-client", ^api_client}, {"accept-encoding", "gzip, deflate, identity"}]
3939
} ->
4040
%Tesla.Env{status: 200, body: @pets_json}
4141
end)
@@ -61,7 +61,7 @@ defmodule Gax.ApiTest do
6161
mock(fn %{
6262
method: :get,
6363
url: "https://example.com/v1/stores/store-1/pets",
64-
headers: [{"x-goog-api-client", ^api_client}]
64+
headers: [{"x-goog-api-client", ^api_client}, {"accept-encoding", "gzip, deflate, identity"}]
6565
} ->
6666
%Tesla.Env{status: 200, body: @pets_json_compressed,
6767
headers: [{"content-encoding", "gzip"}]}

0 commit comments

Comments
 (0)