Skip to content

Commit

Permalink
Improve UT
Browse files Browse the repository at this point in the history
  • Loading branch information
serbel324 committed Feb 25, 2025
1 parent 8f4abb0 commit 7868b2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ydb/core/blobstorage/ut_blobstorage/sanitize_groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ Y_UNIT_TEST_SUITE(GroupLayoutSanitizer) {
const ui32 disksPerNode = 1;
const ui32 slotsPerDisk = 3;

// Assure that sanitizer doesn't send request to initially allocated groups
env->Runtime->FilterFunction = CatchSanitizeRequests;
env->CreateBoxAndPool(disksPerNode, numNodes * disksPerNode * slotsPerDisk / 9);
env->Runtime->FilterFunction = {};
}

NActorsInterconnect::TNodeLocation LocationGenerator(ui32 dc, ui32 rack, ui32 unit) {
Expand All @@ -58,7 +58,13 @@ Y_UNIT_TEST_SUITE(GroupLayoutSanitizer) {
std::unique_ptr<TEnvironmentSetup> env;

CreateEnv(env, locations, groupType);


// Assure that sanitizer doesn't send request to initially allocated groups
env->UpdateSettings(true, false, true);
env->Runtime->FilterFunction = CatchSanitizeRequests;
env->Sim(TDuration::Minutes(3));
env->UpdateSettings(false, false, false);

TGroupGeometryInfo geom = CreateGroupGeometry(groupType);

Expand Down

0 comments on commit 7868b2a

Please sign in to comment.