@@ -355,7 +355,7 @@ class TFixture : public NUnitTest::TBaseFixture {
355
355
void SplitPartition (const TString& topicPath,
356
356
ui32 partitionId,
357
357
const TString& boundary);
358
-
358
+
359
359
virtual bool GetEnableOltpSink () const ;
360
360
virtual bool GetEnableOlapSink () const ;
361
361
virtual bool GetEnableHtapTx () const ;
@@ -1515,9 +1515,7 @@ ui64 TFixture::GetTopicTabletId(const TActorId& actorId, const TString& topicPat
1515
1515
std::vector<std::string> TFixture::GetTabletKeys (const TActorId& actorId,
1516
1516
ui64 tabletId)
1517
1517
{
1518
- using TEvKeyValue = NKikimr::TEvKeyValue;
1519
-
1520
- auto request = std::make_unique<TEvKeyValue::TEvRequest>();
1518
+ auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
1521
1519
request->Record .SetCookie (12345 );
1522
1520
1523
1521
auto cmd = request->Record .AddCmdReadRange ();
@@ -1532,7 +1530,7 @@ std::vector<std::string> TFixture::GetTabletKeys(const TActorId& actorId,
1532
1530
auto & runtime = Setup->GetRuntime ();
1533
1531
1534
1532
runtime.SendToPipe (tabletId, actorId, request.release ());
1535
- auto response = runtime.GrabEdgeEvent <TEvKeyValue::TEvResponse>();
1533
+ auto response = runtime.GrabEdgeEvent <NKikimr:: TEvKeyValue::TEvResponse>();
1536
1534
1537
1535
UNIT_ASSERT (response->Record .HasCookie ());
1538
1536
UNIT_ASSERT_VALUES_EQUAL (response->Record .GetCookie (), 12345 );
@@ -2211,16 +2209,14 @@ Y_UNIT_TEST_F(WriteToTopic_Demo_10_Query, TFixtureQuery)
2211
2209
NPQ::TWriteId TFixture::GetTransactionWriteId (const TActorId& actorId,
2212
2210
ui64 tabletId)
2213
2211
{
2214
- using TEvKeyValue = NKikimr::TEvKeyValue;
2215
-
2216
- auto request = std::make_unique<TEvKeyValue::TEvRequest>();
2212
+ auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
2217
2213
request->Record .SetCookie (12345 );
2218
2214
request->Record .AddCmdRead ()->SetKey (" _txinfo" );
2219
2215
2220
2216
auto & runtime = Setup->GetRuntime ();
2221
2217
2222
2218
runtime.SendToPipe (tabletId, actorId, request.release ());
2223
- auto response = runtime.GrabEdgeEvent <TEvKeyValue::TEvResponse>();
2219
+ auto response = runtime.GrabEdgeEvent <NKikimr:: TEvKeyValue::TEvResponse>();
2224
2220
2225
2221
UNIT_ASSERT (response->Record .HasCookie ());
2226
2222
UNIT_ASSERT_VALUES_EQUAL (response->Record .GetCookie (), 12345 );
@@ -2256,16 +2252,14 @@ void TFixture::WaitForTheTabletToDeleteTheWriteInfo(const TActorId& actorId,
2256
2252
const NPQ::TWriteId& writeId)
2257
2253
{
2258
2254
while (true ) {
2259
- using TEvKeyValue = NKikimr::TEvKeyValue;
2260
-
2261
- auto request = std::make_unique<TEvKeyValue::TEvRequest>();
2255
+ auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
2262
2256
request->Record .SetCookie (12345 );
2263
2257
request->Record .AddCmdRead ()->SetKey (" _txinfo" );
2264
2258
2265
2259
auto & runtime = Setup->GetRuntime ();
2266
2260
2267
2261
runtime.SendToPipe (tabletId, actorId, request.release ());
2268
- auto response = runtime.GrabEdgeEvent <TEvKeyValue::TEvResponse>();
2262
+ auto response = runtime.GrabEdgeEvent <NKikimr:: TEvKeyValue::TEvResponse>();
2269
2263
2270
2264
UNIT_ASSERT (response->Record .HasCookie ());
2271
2265
UNIT_ASSERT_VALUES_EQUAL (response->Record .GetCookie (), 12345 );
0 commit comments