Skip to content

Commit

Permalink
fix ClickHouse-version-specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Jan 29, 2024
1 parent 2f2d991 commit 7384c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ch/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1206,8 +1206,8 @@ defmodule Ch.ConnectionTest do
assert {:error, %Ch.Error{code: 81} = error} =
Ch.query(conn, "select 1 + 1", _params = [], database: "no-db")

assert Exception.message(error) =~
"Code: 81. DB::Exception: Database `no-db` doesn't exist. (UNKNOWN_DATABASE)"
assert Exception.message(error) = "`no-db`"

Check failure on line 1209 in test/ch/connection_test.exs

View workflow job for this annotation

GitHub Actions / test (1.14, 26, latest, UTC)

** (CompileError) test/ch/connection_test.exs:1209: cannot invoke remote function Exception.message/1 inside a match
assert Exception.message(error) =~ "UNKNOWN_DATABASE"
end

test "can provide custom database", %{conn: conn} do
Expand Down

0 comments on commit 7384c6e

Please sign in to comment.