Skip to content

Commit

Permalink
tests: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledest committed May 1, 2024
1 parent 494550c commit 5feb320
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/inets_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
-if(?OTP_RELEASE >= 21).
-compile({parse_transform, otpbp_pt}).

-if(?OTP_RELEASE =:= 23 orelse ?OTP_RELEASE =:= 24).
-compile(nowarn_deprecated_function).
-if(?OTP_RELEASE >= 23).
-compile({nowarn_deprecated_function, [{http_uri, decode, 1}, {http_uri, encode, 1}]}).
-endif.

-include_lib("eunit/include/eunit.hrl").
Expand Down
6 changes: 6 additions & 0 deletions test/uri_string_tests.erl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

-compile({parse_transform, otpbp_pt}).

-ifdef(OTP_RELEASE).
-if(?OTP_RELEASE >= 23).
-compile({nowarn_deprecated_function, [{http_uri, decode, 1}, {http_uri, encode, 1}]}).
-endif.
-endif.

-include_lib("eunit/include/eunit.hrl").

normalize_test() ->
Expand Down

0 comments on commit 5feb320

Please sign in to comment.