diff --git a/test/erollbar_basic_SUITE.erl b/test/erollbar_basic_SUITE.erl index 1a3eb30..89a7397 100644 --- a/test/erollbar_basic_SUITE.erl +++ b/test/erollbar_basic_SUITE.erl @@ -67,7 +67,7 @@ default_settings(Config) -> Hostname = binary_to_list(proplists:get_value(<<"host">>, ServerPart)), BodyPart = proplists:get_value(<<"body">>, DataPart), Trace = proplists:get_value(<<"trace">>, BodyPart), - [Frame1, _] = proplists:get_value(<<"frames">>, Trace), + [Frame1 | _Rest] = proplists:get_value(<<"frames">>, Trace), ct:pal("Frame is ~p", [Frame1]), <<"-default_settings/1-fun-1-/0">> = proplists:get_value(<<"method">>, Frame1), Filename = proplists:get_value(<<"filename">>, Frame1), @@ -117,7 +117,7 @@ bigger_crash(Config) -> BodyPart = proplists:get_value(<<"body">>, DataPart), Trace = proplists:get_value(<<"trace">>, BodyPart), ct:pal("Trace is ~p", [Trace]), - [Frame1, _, _, _] = proplists:get_value(<<"frames">>, Trace), + [Frame1 | _Rest] = proplists:get_value(<<"frames">>, Trace), <<"insert/2">> = proplists:get_value(<<"method">>, Frame1), Filename = proplists:get_value(<<"filename">>, Frame1), {_, _} = binary:match(Filename, <<"ets.erl">>), @@ -145,7 +145,7 @@ crash_with_args(Config) -> [DataPart] = proplists:get_value(<<"data">>, BodyParsed), BodyPart = proplists:get_value(<<"body">>, DataPart), Trace = proplists:get_value(<<"trace">>, BodyPart), - [Frame1, _, _, _] = proplists:get_value(<<"frames">>, Trace), + [Frame1 | _Rest] = proplists:get_value(<<"frames">>, Trace), <<"insert">> = proplists:get_value(<<"method">>, Frame1), Filename = proplists:get_value(<<"filename">>, Frame1), {_, _} = binary:match(Filename, <<"ets.erl">>),