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`.

(cherry picked from commit c9504fa)
  • Loading branch information
gomoripeti authored and michaelklishin committed Nov 26, 2024
1 parent b517947 commit b673d4c
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 b673d4c

Please sign in to comment.