test(router): make sort stable in e2e routing testcase

This commit is contained in:
Andrew Mayorov 2023-09-01 19:48:56 +04:00
parent 545f1c84a6
commit ebf13c90ea
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 6 additions and 1 deletions

View File

@ -131,7 +131,12 @@ t_cluster_routing(Config) ->
{pub, C3, #{topic := <<"a/b/d">>, payload := <<"07">>}},
{pub, C3, #{topic := <<"a/b/d">>, payload := <<"10">>}}
],
lists:sort(Deliveries)
lists:sort(
fun({pub, CL, #{payload := PL}}, {pub, CR, #{payload := PR}}) ->
{CL, PL} < {CR, PR}
end,
Deliveries
)
).
start_client(Node) ->