Skip to content

Commit 693b465

Browse files
Compile on OTP 19.0
1 parent 9306b19 commit 693b465

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/channel_operation_timeout_test_queue.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@
188188
io_batch_size :: pos_integer(),
189189
mode :: 'default' | 'lazy' }).
190190
%% Duplicated from rabbit_backing_queue
191-
-spec(ack/2 :: ([ack()], state()) -> {[rabbit_guid:guid()], state()}).
191+
-spec(ack([ack()], state()) -> {[rabbit_guid:guid()], state()}).
192192

193-
-spec(multiple_routing_keys/0 :: () -> 'ok').
193+
-spec(multiple_routing_keys() -> 'ok').
194194

195195
-endif.
196196

test/priority_queue_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ publish_payload(Ch, Q, PPds) ->
486486
amqp_channel:wait_for_confirms(Ch).
487487

488488
publish_many(_Ch, _Q, 0) -> ok;
489-
publish_many( Ch, Q, N) -> publish1(Ch, Q, random:uniform(5)),
489+
publish_many( Ch, Q, N) -> publish1(Ch, Q, rand:uniform(5)),
490490
publish_many(Ch, Q, N - 1).
491491

492492
publish1(Ch, Q, P) ->

test/unit_inbroker_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ maybe_switch_queue_mode(VQ) ->
13161316

13171317
random_queue_mode() ->
13181318
Modes = [lazy, default],
1319-
lists:nth(random:uniform(length(Modes)), Modes).
1319+
lists:nth(rand:uniform(length(Modes)), Modes).
13201320

13211321
pub_res({_, VQS}) ->
13221322
VQS;

0 commit comments

Comments
 (0)