Skip to content

Commit

Permalink
amqp10_common: Don't wrap export for test in test macro
Browse files Browse the repository at this point in the history
The application is not always recompiled which causes tests to fail
because they cannot call `serial_number:usort/1`.
  • Loading branch information
gomoripeti committed Nov 19, 2024
1 parent 0c76054 commit 05a3733
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deps/amqp10_common/src/serial_number.erl
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
diff/2,
foldl/4]).

-ifdef(TEST).
%% For tests.
-export([usort/1]).
-endif.

-type serial_number() :: sequence_no().
-export_type([serial_number/0]).
Expand Down

0 comments on commit 05a3733

Please sign in to comment.