Skip to content

Commit 8ff7c8d

Browse files
LostKobrakaiBenjamin Milde
and
Benjamin Milde
authored
Update error message to match on OTP 24 (#47)
Co-authored-by: Benjamin Milde <[email protected]>
1 parent 886bd6f commit 8ff7c8d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

test/ecto/adapters/sqlite3/connection_test.exs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2370,9 +2370,20 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
23702370
end
23712371

23722372
test "create table with an unsupported type" do
2373+
msg =
2374+
if :erlang.system_info(:otp_release) >= '24' do
2375+
"""
2376+
errors were found at the given arguments:
2377+
2378+
* 1st argument: not an atom
2379+
"""
2380+
else
2381+
"argument error"
2382+
end
2383+
23732384
assert_raise(
23742385
ArgumentError,
2375-
"argument error",
2386+
msg,
23762387
fn ->
23772388
{:create, table(:posts),
23782389
[

0 commit comments

Comments
 (0)