From 80d9ac7f219912ec35d2cae3eccacaf74fb2ca82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ma=C5=9Blanka?= Date: Tue, 11 Jun 2024 10:21:20 +0000 Subject: [PATCH] k/tests: fixed use of entity_key constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed usage of `entity_key` constructor in `quota_manager` fixture test. Signed-off-by: Michał Maślanka --- src/v/kafka/server/tests/quota_manager_test.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/v/kafka/server/tests/quota_manager_test.cc b/src/v/kafka/server/tests/quota_manager_test.cc index d1d45f3ba8bdf..2843b240687ba 100644 --- a/src/v/kafka/server/tests/quota_manager_test.cc +++ b/src/v/kafka/server/tests/quota_manager_test.cc @@ -70,11 +70,7 @@ SEASTAR_THREAD_TEST_CASE(quota_manager_fetch_throttling) { using cluster::client_quota::entity_key; using cluster::client_quota::entity_value; - auto default_key = entity_key{ - .parts = {entity_key::part{ - .part = entity_key::part::client_id_default_match{}, - }}, - }; + auto default_key = entity_key(entity_key::client_id_default_match{}); auto default_values = entity_value{ .consumer_byte_rate = 100, }; @@ -116,11 +112,7 @@ SEASTAR_THREAD_TEST_CASE(quota_manager_fetch_stress_test) { using cluster::client_quota::entity_key; using cluster::client_quota::entity_value; - auto default_key = entity_key{ - .parts = {entity_key::part{ - .part = entity_key::part::client_id_default_match{}, - }}, - }; + auto default_key = entity_key(entity_key::client_id_default_match{}); auto default_values = entity_value{ .consumer_byte_rate = 100, };