Skip to content

Commit

Permalink
Merge pull request #19474 from mmaslankaprv/fix-quota-manager-test
Browse files Browse the repository at this point in the history
k/tests: fixed use of entity_key constructor
  • Loading branch information
mmaslankaprv authored Jun 11, 2024
2 parents 4458d3b + 80d9ac7 commit 9c7c7a3
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/v/kafka/server/tests/quota_manager_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 9c7c7a3

Please sign in to comment.