Skip to content

Commit

Permalink
Add 'TEST' macro to options when compile for reload (#1528)
Browse files Browse the repository at this point in the history
Co-authored-by: Zsolt Laky <[email protected]>
  • Loading branch information
zsoci and Zsolt Laky authored Sep 18, 2024
1 parent fd4ac53 commit acd7f80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/els_lsp/src/els_code_reload.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ options(Node, Module) ->
CompileOptions = proplists:get_value(
options, CompileInfo, []
),
case [Option || {d, 'TEST', _} = Option <- CompileOptions] of
[] ->
case lists:keyfind('TEST', 2, CompileOptions) of
false ->
%% Ensure TEST define is set, this is to
%% enable eunit diagnostics to run
[{d, 'TEST', true}];
Expand Down

0 comments on commit acd7f80

Please sign in to comment.