Commit aeedad7
committed
Fix test flake
Prior to this commit, test
```
ERL_AFLAGS="+S 2" make -C deps/rabbit ct-amqp_client t=cluster_size_3:detach_requeues_two_connections_quorum_queue
```
failed rarely locally, and more often in CI.
An instance of a failed test in CI is
https://github.com/rabbitmq/rabbitmq-server/actions/runs/10298099899/job/28502687451?pr=11945
The test failed with:
```
=== === Reason: {assertEqual,[{module,amqp_client_SUITE},
{line,2800},
{expression,"amqp10_msg : body ( Msg1 )"},
{expected,[<<"1">>]},
{value,[<<"2">>]}]}
in function amqp_client_SUITE:detach_requeues_two_connections/2 (amqp_client_SUITE.erl, line 2800)
```
because it could happen that Receiver1's credit top up to the quorum
queue is applied before Receiver0's credit top up such that Receiver1
gets enqueued to the ServiceQueue before Receiver0.1 parent 194d4ba commit aeedad7
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2767 | 2767 | | |
2768 | 2768 | | |
2769 | 2769 | | |
| 2770 | + | |
2770 | 2771 | | |
2771 | 2772 | | |
2772 | 2773 | | |
| |||
2778 | 2779 | | |
2779 | 2780 | | |
2780 | 2781 | | |
| 2782 | + | |
| 2783 | + | |
2781 | 2784 | | |
2782 | 2785 | | |
2783 | 2786 | | |
2784 | 2787 | | |
2785 | 2788 | | |
2786 | | - | |
2787 | | - | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
2788 | 2792 | | |
2789 | 2793 | | |
2790 | 2794 | | |
| |||
0 commit comments