Skip to content

Commit

Permalink
fix user agent test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Jan 29, 2024
1 parent 594c929 commit 2f2d991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ch/http_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Ch.HTTPTest do
test "sets user-agent to ch/<version> by default", %{ch: ch} do
%Ch.Result{rows: [[123]], headers: resp_header} = Ch.query!(ch, "select 123")
{"x-clickhouse-query-id", query_id} = List.keyfind!(resp_header, "x-clickhouse-query-id", 0)
assert query_http_user_agent(ch, query_id) == "ch/0.2.3"
assert query_http_user_agent(ch, query_id) == "ch/0.2.4"
end

test "uses the provided user-agent", %{ch: ch} do
Expand Down

0 comments on commit 2f2d991

Please sign in to comment.