Skip to content

Commit

Permalink
sharding ut cleanup - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qkrorlqr committed Jan 15, 2025
1 parent b2dee0d commit c82264a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloud/filestore/libs/storage/service/service_ut_sharding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4611,10 +4611,10 @@ Y_UNIT_TEST_SUITE(TStorageServiceShardingTest)
UNIT_ASSERT_VALUES_UNEQUAL(0, nodes[i].first);
}

UNIT_ASSERT_VALUES_EQUAL(2, ExtractShardNo(nodes[0].first));
UNIT_ASSERT_VALUES_EQUAL(1, ExtractShardNo(nodes[1].first));
UNIT_ASSERT_VALUES_EQUAL(2, ExtractShardNo(nodes[2].first));
UNIT_ASSERT_VALUES_EQUAL(1, ExtractShardNo(nodes[3].first));
UNIT_ASSERT_VALUES_EQUAL(1, ExtractShardNo(nodes[0].first));
UNIT_ASSERT_VALUES_EQUAL(2, ExtractShardNo(nodes[1].first));
UNIT_ASSERT_VALUES_EQUAL(1, ExtractShardNo(nodes[2].first));
UNIT_ASSERT_VALUES_EQUAL(2, ExtractShardNo(nodes[3].first));

auto getAttrResponse = service.GetNodeAttr(
headers,
Expand Down Expand Up @@ -4816,7 +4816,7 @@ Y_UNIT_TEST_SUITE(TStorageServiceShardingTest)
void CatchEvent(ui32 eventType)
{
Env.GetRuntime().SetEventFilter(
[&] (auto& runtime, TAutoPtr<IEventHandle>& event) {
[&, eventType] (auto& runtime, TAutoPtr<IEventHandle>& event) {
Y_UNUSED(runtime);
if (ShouldIntercept
&& event->GetTypeRewrite() == eventType)
Expand Down

0 comments on commit c82264a

Please sign in to comment.