Skip to content

Commit

Permalink
updated expected error messages according to adbc 0.11.0-rc0
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Mar 29, 2024
1 parent 280e1b5 commit 1b869f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/adbc_connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ defmodule Adbc.Connection.Test do

assert {:error, %Adbc.Error{} = error} = Connection.start_link(database: db, who_knows: 123)

assert Exception.message(error) == "[SQLite] Unknown connection option who_knows=123"
assert Exception.message(error) == "[SQLite] Unknown connection option who_knows='123'"
end
end

Expand Down Expand Up @@ -231,7 +231,7 @@ defmodule Adbc.Connection.Test do
conn = start_supervised!({Connection, database: db})

assert_raise Adbc.Error,
~s([SQLite] Failed to prepare query: near "NOT": syntax error\nQuery:NOT VALID SQL),
~s([SQLite] Failed to prepare query: near "NOT": syntax error\nquery: NOT VALID SQL),
fn -> Connection.query!(conn, "NOT VALID SQL") end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/adbc_database_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defmodule Adbc.DatabaseTest do
assert {:error, %Adbc.Error{} = error} =
Database.start_link(driver: :sqlite, who_knows: 123)

assert Exception.message(error) == "[SQLite] Unknown database option who_knows=123"
assert Exception.message(error) == "[SQLite] Unknown database option who_knows='123'"
end
end
end

0 comments on commit 1b869f4

Please sign in to comment.