Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
WilyTiger committed Feb 7, 2025
1 parent f632872 commit 9a9123a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -801,13 +801,15 @@ Y_UNIT_TEST_SUITE(TMirrorPartitionTest)
env.WriteReplica(1, range1, 'B');
env.WriteReplica(2, range1, 'C');

// Check that with 0 replica index we read all replicas round-robin
for (char c: TVector{'A', 'B', 'C'})
{
auto response = client.ReadBlocks(range1, 0);
const auto& blocks = response->Record.GetBlocks();
UNIT_ASSERT_VALUES_EQUAL(100, blocks.BuffersSize());
for (ui32 i = 0; i < 100; ++i) {
UNIT_ASSERT_VALUES_EQUAL(
TString(DefaultBlockSize, 'A'),
TString(DefaultBlockSize, c),
blocks.GetBuffers(i));
}
}
Expand Down

0 comments on commit 9a9123a

Please sign in to comment.