Skip to content

Commit f1271f9

Browse files
committed
fix
1 parent 19cdeda commit f1271f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ydb/core/persqueue/ut/ut_with_sdk/topic_ut.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,16 @@ Y_UNIT_TEST_SUITE(WithSDK) {
456456
setup.Write("message-1-2", 1);
457457
} else if (x.GetPartitionSession()->GetPartitionId() == 1 && m.GetOffset() == 0) {
458458
m.Commit();
459+
return false;
459460
}
460461
}
461-
return false;
462+
463+
return true;
462464
});
463465

464-
Sleep(TDuration::Seconds(2));
466+
Sleep(TDuration::Seconds(3));
465467

468+
// Commit hasn`t applyed because messages from the parent partitions has`t been committed
466469
UNIT_ASSERT_VALUES_EQUAL(0, getCommittedOffset(0));
467470
UNIT_ASSERT_VALUES_EQUAL(0, getCommittedOffset(1));
468471
UNIT_ASSERT_VALUES_EQUAL(0, getCommittedOffset(2));

0 commit comments

Comments
 (0)