Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

Commit c41d025

Browse files
rabbit_mgmt_http_SUITE: compute number of pages here
1 parent c1ba9db commit c41d025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rabbit_mgmt_http_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ exchanges_pagination_test(Config) ->
17251725
?assertEqual(2, maps:get(item_count, PageOfTwo)),
17261726
?assertEqual(1, maps:get(page, PageOfTwo)),
17271727
?assertEqual(2, maps:get(page_size, PageOfTwo)),
1728-
?assertEqual(9, maps:get(page_count, PageOfTwo)),
1728+
?assertEqual(round(Total / 2), maps:get(page_count, PageOfTwo)),
17291729
assert_list([#{name => <<"">>, vhost => <<"/">>},
17301730
#{name => <<"amq.direct">>, vhost => <<"/">>}
17311731
], maps:get(items, PageOfTwo)),

0 commit comments

Comments
 (0)