Skip to content

Commit 3545be8

Browse files
Stabilize DR tests (#10750)
1 parent e6a3afc commit 3545be8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ydb/core/persqueue/ut/common/pq_ut_common.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,11 +722,14 @@ void CmdSetOffset(const ui32 partition, const TString& user, ui64 offset, bool e
722722

723723

724724
TActorId CmdCreateSession(const TPQCmdSettings& settings, TTestContext& tc) {
725-
726725
TActorId pipeClient = tc.Runtime->ConnectToPipe(tc.BalancerTabletId, tc.Edge, 0, GetPipeConfigWithRetries());
727726
TActorId tabletPipe = tc.Runtime->ConnectToPipe(tc.TabletId, tc.Edge, 0, GetPipeConfigWithRetries());
728-
729727
TAutoPtr<IEventHandle> handle;
728+
{
729+
auto predicate = [&](const auto& ev) { return ev.TabletId == tc.TabletId; };
730+
auto ev = tc.Runtime->GrabEdgeEventIf<TEvTabletPipe::TEvClientConnected>(handle, predicate);
731+
UNIT_ASSERT(ev);
732+
}
730733
TEvPersQueue::TEvResponse *result;
731734
THolder<TEvPersQueue::TEvRequest> request;
732735
for (i32 retriesLeft = 2; retriesLeft > 0; --retriesLeft) {

ydb/services/persqueue_v1/persqueue_ut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ TPersQueueV1TestServer server{{.CheckACL=true, .NodeCount=1}};
11671167
}
11681168

11691169
Y_UNIT_TEST(DirectReadCleanCache) {
1170-
TPersQueueV1TestServer server;
1170+
TPersQueueV1TestServer server{{.NodeCount=1}};
11711171
SET_LOCALS;
11721172
TString topicPath{"/Root/PQ/rt3.dc1--acc--topic2"};
11731173
server.Server->AnnoyingClient->CreateTopicNoLegacy(topicPath, 1);

0 commit comments

Comments
 (0)