From 0e64bbb4f0c2db7f21ed4a0a77078cd1630557db Mon Sep 17 00:00:00 2001 From: Benjamin Milde Date: Wed, 25 Aug 2021 10:24:58 +0200 Subject: [PATCH] Update error message to match on OTP 24 --- test/ecto/adapters/sqlite3/connection_test.exs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/ecto/adapters/sqlite3/connection_test.exs b/test/ecto/adapters/sqlite3/connection_test.exs index 025473c..3593356 100644 --- a/test/ecto/adapters/sqlite3/connection_test.exs +++ b/test/ecto/adapters/sqlite3/connection_test.exs @@ -2370,9 +2370,20 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do end test "create table with an unsupported type" do + msg = + if :erlang.system_info(:otp_release) >= '24' do + """ + errors were found at the given arguments: + + * 1st argument: not an atom + """ + else + "argument error" + end + assert_raise( ArgumentError, - "argument error", + msg, fn -> {:create, table(:posts), [