File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 83
83
- name : Check application compile warnings
84
84
run : mix compile --force --warnings-as-errors
85
85
86
- - name : Check Credo warnings
87
- run : mix credo
86
+ # - name: Check Credo warnings
87
+ # run: mix credo
88
88
89
89
- name : Run Tests - SQLite3
90
90
run : mix test
Original file line number Diff line number Diff line change @@ -38,11 +38,21 @@ defmodule ErrorTrackerTest do
38
38
assert error . kind == to_string ( ArithmeticError )
39
39
assert error . reason == "bad argument in arithmetic expression"
40
40
41
- assert last_line . module == "erlang"
42
- assert last_line . function == "+"
43
- assert last_line . arity == 2
44
- refute last_line . file
45
- refute last_line . line
41
+ # Elixir 1.17.0 reports these errors differently than previous versions
42
+ if Version . compare ( System . version ( ) , "1.17.0" ) == :lt do
43
+ dbg ( last_line )
44
+ assert last_line . module == "Elixir.ErrorTrackerTest"
45
+ assert last_line . function == "report_error/2"
46
+ assert last_line . arity == 1
47
+ assert last_line . file == @ relative_file_path
48
+ assert last_line . line == 11
49
+ else
50
+ assert last_line . module == "erlang"
51
+ assert last_line . function == "+"
52
+ assert last_line . arity == 2
53
+ refute last_line . file
54
+ refute last_line . line
55
+ end
46
56
end
47
57
48
58
test "reports undefined function errors" do
You can’t perform that action at this time.
0 commit comments