Skip to content

Commit 1fda729

Browse files
Amend stack trace logging integration test to work for custom adapters (#426)
1 parent 873e7f9 commit 1fda729

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

integration_test/sql/logging.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ defmodule Ecto.Integration.LoggingTest do
7676
@stacktrace_opts [stacktrace: true, log: :error]
7777

7878
defp stacktrace_entry(line) do
79-
"↳ anonymous fn/0 in Ecto.Integration.LoggingTest.\"test logs includes stacktraces\"/1, " <>
80-
"at: integration_test/sql/logging.exs:#{line - 3}"
79+
~r/↳ anonymous fn\/0 in Ecto.Integration.LoggingTest.\"test logs includes stacktraces\"\/1, at: .*integration_test\/sql\/logging.exs:#{line - 3}/
8180
end
8281

8382
test "when some measurements are nil" do

0 commit comments

Comments
 (0)