Skip to content

Commit efc26fa

Browse files
committed
fixup! Updates Sentry.Sources to support multiple source code root paths
1 parent 32383dd commit efc26fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/sources_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ defmodule Sentry.SourcesTest do
55

66
describe "load_files/0" do
77
test "loads files" do
8-
Application.put_env(:sentry, :root_source_code_paths, [
8+
modify_env(:sentry, root_source_code_paths: [
99
File.cwd!() <> "/test/support/example-umbrella-app/apps/app_a",
1010
File.cwd!() <> "/test/support/example-umbrella-app/apps/app_b"
1111
])
@@ -29,7 +29,7 @@ defmodule Sentry.SourcesTest do
2929
end
3030

3131
test "raises error when two files have the same relative path" do
32-
Application.put_env(:sentry, :root_source_code_paths, [
32+
modify_env(:sentry, root_source_code_paths: [
3333
File.cwd!() <> "/test/support/example-umbrella-app-with-conflict/apps/app_a",
3434
File.cwd!() <> "/test/support/example-umbrella-app-with-conflict/apps/app_b"
3535
])

0 commit comments

Comments
 (0)