Skip to content

Commit 7868b2a

Browse files
committed
Improve UT
1 parent 8f4abb0 commit 7868b2a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ydb/core/blobstorage/ut_blobstorage/sanitize_groups.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Y_UNIT_TEST_SUITE(GroupLayoutSanitizer) {
3838
const ui32 disksPerNode = 1;
3939
const ui32 slotsPerDisk = 3;
4040

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

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

6060
CreateEnv(env, locations, groupType);
61+
62+
63+
// Assure that sanitizer doesn't send request to initially allocated groups
64+
env->UpdateSettings(true, false, true);
65+
env->Runtime->FilterFunction = CatchSanitizeRequests;
6166
env->Sim(TDuration::Minutes(3));
67+
env->UpdateSettings(false, false, false);
6268

6369
TGroupGeometryInfo geom = CreateGroupGeometry(groupType);
6470

0 commit comments

Comments
 (0)