@@ -608,18 +608,18 @@ tick_test(C) ->
608
608
{S3 , {_ , _ }} = deq (C , 4 , Cid2 , unsettled , Msg2 , S2 ),
609
609
{S4 , _ , _ } = apply (meta (C , 5 ), rabbit_fifo :make_return (Cid , [MsgId ]), S3 ),
610
610
611
- [{mod_call , rabbit_quorum_queue , handle_tick ,
612
- [# resource {},
613
- #{config := #{name := ? FUNCTION_NAME },
614
- num_consumers := 1 ,
615
- num_checked_out := 1 ,
616
- num_ready_messages := 1 ,
617
- num_messages := 2 ,
618
- enqueue_message_bytes := 3 ,
619
- checkout_message_bytes := 3 ,
620
- num_discarded := _Discards },
621
- [_Node ]
622
- ] }] = rabbit_fifo :tick (1 , S4 ),
611
+ [{aux , { handle_tick ,
612
+ [# resource {},
613
+ #{config := #{name := ? FUNCTION_NAME },
614
+ num_consumers := 1 ,
615
+ num_checked_out := 1 ,
616
+ num_ready_messages := 1 ,
617
+ num_messages := 2 ,
618
+ enqueue_message_bytes := 3 ,
619
+ checkout_message_bytes := 3 ,
620
+ num_discarded := _Discards },
621
+ [_Node ]
622
+ ]} }] = rabbit_fifo :tick (1 , S4 ),
623
623
ok .
624
624
625
625
@@ -1562,10 +1562,10 @@ purge_nodes_test(C) ->
1562
1562
{down , EnqPid , noconnection },
1563
1563
State3 ),
1564
1564
? assertMatch (
1565
- [{mod_call , rabbit_quorum_queue , handle_tick ,
1565
+ [{aux , { handle_tick ,
1566
1566
[# resource {}, _Metrics ,
1567
1567
[ThisNode , Node ]
1568
- ]}] , rabbit_fifo :tick (1 , State4 )),
1568
+ ]}} ] , rabbit_fifo :tick (1 , State4 )),
1569
1569
% % assert there are both enqueuers and consumers
1570
1570
{State , _ , _ } = apply (meta (C , 5 ),
1571
1571
rabbit_fifo :make_purge_nodes ([Node ]),
@@ -1578,10 +1578,10 @@ purge_nodes_test(C) ->
1578
1578
? assertMatch (# rabbit_fifo {consumers = Cons } when map_size (Cons ) == 0 ,
1579
1579
State ),
1580
1580
? assertMatch (
1581
- [{mod_call , rabbit_quorum_queue , handle_tick ,
1581
+ [{aux , { handle_tick ,
1582
1582
[# resource {}, _Metrics ,
1583
1583
[ThisNode ]
1584
- ]}] , rabbit_fifo :tick (1 , State )),
1584
+ ]}} ] , rabbit_fifo :tick (1 , State )),
1585
1585
ok .
1586
1586
1587
1587
meta (Config , Idx ) ->
@@ -1765,21 +1765,21 @@ queue_ttl_test(C) ->
1765
1765
expires => 1000 },
1766
1766
S0 = rabbit_fifo :init (Conf ),
1767
1767
Now = 1500 ,
1768
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now , S0 ),
1768
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now , S0 ),
1769
1769
% % this should delete the queue
1770
1770
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1771
1771
= rabbit_fifo :tick (Now + 1000 , S0 ),
1772
1772
% % adding a consumer should not ever trigger deletion
1773
1773
Cid = {<<" cid1" >>, self ()},
1774
1774
{S1 , _ } = check_auto (C , Cid , 1 , S0 ),
1775
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now , S1 ),
1776
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S1 ),
1775
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now , S1 ),
1776
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S1 ),
1777
1777
% % cancelling the consumer should then
1778
1778
{S2 , _ , _ } = apply (meta (C , 2 , Now ),
1779
1779
rabbit_fifo :make_checkout (Cid , cancel , #{}), S1 ),
1780
1780
% % last_active should have been reset when consumer was cancelled
1781
1781
% % last_active = 2500
1782
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S2 ),
1782
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S2 ),
1783
1783
% % but now it should be deleted
1784
1784
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1785
1785
= rabbit_fifo :tick (Now + 2500 , S2 ),
@@ -1789,7 +1789,7 @@ queue_ttl_test(C) ->
1789
1789
{down , self (), noconnection }, S1 ),
1790
1790
% % last_active should have been reset when consumer was cancelled
1791
1791
% % last_active = 2500
1792
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S2D ),
1792
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S2D ),
1793
1793
% % but now it should be deleted
1794
1794
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1795
1795
= rabbit_fifo :tick (Now + 2500 , S2D ),
@@ -1800,7 +1800,7 @@ queue_ttl_test(C) ->
1800
1800
rabbit_fifo :make_checkout (Cid , {dequeue , unsettled }, #{}),
1801
1801
S0 ),
1802
1802
1803
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S1Deq ),
1803
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S1Deq ),
1804
1804
% % but now it should be deleted
1805
1805
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1806
1806
= rabbit_fifo :tick (Now + 2500 , S1Deq ),
@@ -1818,11 +1818,10 @@ queue_ttl_test(C) ->
1818
1818
{wrap_reply , {dequeue , {MsgId , _ }, _ }}}] = Fun2 ([Msg ]),
1819
1819
{E3 , _ , _ } = apply (meta (C , 3 , Now + 1000 ),
1820
1820
rabbit_fifo :make_settle (Deq , [MsgId ]), E2 ),
1821
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1500 , E3 ),
1821
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1500 , E3 ),
1822
1822
% % but now it should be deleted
1823
1823
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1824
1824
= rabbit_fifo :tick (Now + 3000 , E3 ),
1825
-
1826
1825
ok .
1827
1826
1828
1827
queue_ttl_with_single_active_consumer_test (C ) ->
@@ -1834,35 +1833,33 @@ queue_ttl_with_single_active_consumer_test(C) ->
1834
1833
single_active_consumer_on => true },
1835
1834
S0 = rabbit_fifo :init (Conf ),
1836
1835
Now = 1500 ,
1837
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now , S0 ),
1836
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now , S0 ),
1838
1837
% % this should delete the queue
1839
1838
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1840
1839
= rabbit_fifo :tick (Now + 1000 , S0 ),
1841
1840
% % adding a consumer should not ever trigger deletion
1842
1841
Cid = {<<" cid1" >>, self ()},
1843
1842
{S1 , _ } = check_auto (C , Cid , 1 , S0 ),
1844
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now , S1 ),
1845
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S1 ),
1843
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now , S1 ),
1844
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S1 ),
1846
1845
% % cancelling the consumer should then
1847
1846
{S2 , _ , _ } = apply (meta (C , 2 , Now ),
1848
1847
rabbit_fifo :make_checkout (Cid , cancel , #{}), S1 ),
1849
1848
% % last_active should have been reset when consumer was cancelled
1850
1849
% % last_active = 2500
1851
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S2 ),
1850
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S2 ),
1852
1851
% % but now it should be deleted
1853
1852
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1854
1853
= rabbit_fifo :tick (Now + 2500 , S2 ),
1855
-
1856
1854
% % Same for downs
1857
1855
{S2D , _ , _ } = apply (meta (C , 2 , Now ),
1858
1856
{down , self (), noconnection }, S1 ),
1859
1857
% % last_active should have been reset when consumer was cancelled
1860
1858
% % last_active = 2500
1861
- [{mod_call , _ , handle_tick , _ }] = rabbit_fifo :tick (Now + 1000 , S2D ),
1859
+ [{aux , { handle_tick , [ _ , _ , _ ]} }] = rabbit_fifo :tick (Now + 1000 , S2D ),
1862
1860
% % but now it should be deleted
1863
1861
[{mod_call , rabbit_quorum_queue , spawn_deleter , [QName ]}]
1864
1862
= rabbit_fifo :tick (Now + 2500 , S2D ),
1865
-
1866
1863
ok .
1867
1864
1868
1865
query_peek_test (C ) ->
0 commit comments