Skip to content

Commit 49c645a

Browse files
committed
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.
1 parent f80cd7d commit 49c645a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/rabbit/test/rabbit_db_queue_SUITE.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ all_tests() ->
4242
set,
4343
delete,
4444
update,
45+
update_decorators,
4546
exists,
4647
get_all_durable,
4748
get_all_durable_by_type,
@@ -323,7 +324,7 @@ update_decorators1(_Config) ->
323324
?assertEqual({ok, Q}, rabbit_db_queue:get(QName)),
324325
?assertEqual(undefined, amqqueue:get_decorators(Q)),
325326
%% Not really testing we set a decorator, but at least the field is being updated
326-
?assertEqual(ok, rabbit_db_queue:update_decorators(QName)),
327+
?assertEqual(ok, rabbit_db_queue:update_decorators(QName, [])),
327328
{ok, Q1} = rabbit_db_queue:get(QName),
328329
?assertEqual([], amqqueue:get_decorators(Q1)),
329330
passed.

0 commit comments

Comments
 (0)