Skip to content

Commit

Permalink
Fix tests broken in f2ae8fe
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Feb 27, 2021
1 parent 560282b commit e3f7ec3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pr_stacktrace_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pr_stacktrace_throw_test() ->
Class:Reason:Stacktrace ->
lager:pr_stacktrace(Stacktrace, {Class, Reason})
end,
Want = "pr_stacktrace_test:pr_stacktrace_throw_test/0 line 26\n pr_stacktrace_test:make_throw/0 line 16\nthrow:{test,exception}",
Want = "pr_stacktrace_test:pr_stacktrace_throw_test/0 line 18\n pr_stacktrace_test:make_throw/0 line 8\nthrow:{test,exception}",
?assertNotEqual(nomatch, string:find(Got, Want)).

pr_stacktrace_bad_arg_test() ->
Expand All @@ -30,7 +30,7 @@ pr_stacktrace_bad_arg_test() ->
Class:Reason:Stacktrace ->
lager:pr_stacktrace(Stacktrace, {Class, Reason})
end,
Want = "pr_stacktrace_test:pr_stacktrace_bad_arg_test/0 line 36\n pr_stacktrace_test:bad_arg/0 line 22\nerror:badarg",
Want = "pr_stacktrace_test:pr_stacktrace_bad_arg_test/0 line 28\n pr_stacktrace_test:bad_arg/0 line 14\nerror:badarg",
?assertNotEqual(nomatch, string:find(Got, Want)).

pr_stacktrace_bad_arity_test() ->
Expand All @@ -40,7 +40,7 @@ pr_stacktrace_bad_arity_test() ->
Class:Reason:Stacktrace ->
lager:pr_stacktrace(Stacktrace, {Class, Reason})
end,
Want = "pr_stacktrace_test:pr_stacktrace_bad_arity_test/0 line 46\n lists:concat([], [])\nerror:undef",
Want = "pr_stacktrace_test:pr_stacktrace_bad_arity_test/0 line 38\n lists:concat([], [])\nerror:undef",
?assertNotEqual(nomatch, string:find(Got, Want)).

pr_stacktrace_no_reverse_test() ->
Expand Down

0 comments on commit e3f7ec3

Please sign in to comment.