From c129a9c0838f7c87e534b66e977f8200793164e3 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Fri, 16 Aug 2024 11:10:55 -0400 Subject: [PATCH] Fix rabbit_db_queue_SUITE:update_decorators case This test called `rabbit_db_queue:update_decorators/1` which doesn't exist - instead it can call `update_decorators/2` with an empty list. This commit also adds the test to the `all_tests/0` list - it being absent is why this wasn't caught before. (cherry picked from commit 49c645a076d882bf72240be1b6375b82ccf1a45b) --- deps/rabbit/test/rabbit_db_queue_SUITE.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/rabbit/test/rabbit_db_queue_SUITE.erl b/deps/rabbit/test/rabbit_db_queue_SUITE.erl index 352f0f0fffe2..f66e8fd236c9 100644 --- a/deps/rabbit/test/rabbit_db_queue_SUITE.erl +++ b/deps/rabbit/test/rabbit_db_queue_SUITE.erl @@ -42,6 +42,7 @@ all_tests() -> set, delete, update, + update_decorators, exists, get_all_durable, get_all_durable_by_type, @@ -323,7 +324,7 @@ update_decorators1(_Config) -> ?assertEqual({ok, Q}, rabbit_db_queue:get(QName)), ?assertEqual(undefined, amqqueue:get_decorators(Q)), %% Not really testing we set a decorator, but at least the field is being updated - ?assertEqual(ok, rabbit_db_queue:update_decorators(QName)), + ?assertEqual(ok, rabbit_db_queue:update_decorators(QName, [])), {ok, Q1} = rabbit_db_queue:get(QName), ?assertEqual([], amqqueue:get_decorators(Q1)), passed.