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 89b3d88
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`"
assert Exception.message(error) =~ "UNKNOWN_DATABASE"
end

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

0 comments on commit 89b3d88

Please sign in to comment.