Skip to content

Commit

Permalink
Add 'TEST' macro to options when compile for reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsolt Laky committed Sep 3, 2024
1 parent a71c3d7 commit 9f3de87
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 9f3de87

Please sign in to comment.