File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -297,6 +297,12 @@ defmodule Sentry.EventTest do
297297 ] = thread_stacktrace . frames
298298 end
299299
300+ test "fills in the :release field from the config" do
301+ put_test_config ( release: "3c9d0f1e7a89876258828fbb480fd5cdfb0467fa" )
302+ assert % Event { } = event = Event . create_event ( [ ] )
303+ assert event . release == "3c9d0f1e7a89876258828fbb480fd5cdfb0467fa"
304+ end
305+
300306 test "fills in private (:__...__) fields" do
301307 exception = % RuntimeError { message: "foo" }
302308
Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ defmodule Sentry.ClientTest do
1717 } = Client . render_event ( event )
1818 end
1919
20+ test "renders :release field" do
21+ put_test_config ( release: "1.9.123" )
22+ event = Event . create_event ( [ ] )
23+
24+ assert % { release: "1.9.123" } = Client . render_event ( event )
25+ end
26+
2027 test "truncates the message to a max length" do
2128 max_length = 8_192
2229 event = Event . create_event ( message: String . duplicate ( "a" , max_length + 1 ) )
You can’t perform that action at this time.
0 commit comments