@@ -677,18 +677,19 @@ namespace NYdb::NTopic::NTests {
677
677
.MessageGroupId (TEST_MESSAGE_GROUP_ID)
678
678
.DirectWriteToPartition (true );
679
679
auto writeSession = client.CreateSimpleBlockingWriteSession (writeSettings);
680
- TTestReadSession ReadSession ( " Session-0" , client, 2 );
680
+ auto ReadSession = NPQ::NTest::CreateTestReadSession ({ . Name = " Session-0" , . Setup =setup, . Sdk = NPQ::NTest::SdkVersion::Topic, . ExpectedMessagesCount = 2 } );
681
681
682
- UNIT_ASSERT (writeSession->Write (Msg (" message_1.1" , 2 )));
682
+
683
+ UNIT_ASSERT (writeSession->Write (NPQ::NTest::Msg (" message_1.1" , 2 )));
683
684
684
685
ui64 txId = 1006 ;
685
- SplitPartition (setup, ++txId, 0 , " a" );
686
+ NPQ::NTest:: SplitPartition (setup, ++txId, 0 , " a" );
686
687
687
- UNIT_ASSERT (writeSession->Write (Msg (" message_1.2" , 3 )));
688
+ UNIT_ASSERT (writeSession->Write (NPQ::NTest:: Msg (" message_1.2" , 3 )));
688
689
689
- ReadSession. WaitAllMessages ();
690
+ ReadSession-> WaitAllMessages ();
690
691
691
- for (const auto & info : ReadSession. Impl -> ReceivedMessages ) {
692
+ for (const auto & info : ReadSession-> GetReceivedMessages () ) {
692
693
if (info.Data == " message_1.1" ) {
693
694
UNIT_ASSERT_EQUAL (0 , info.PartitionId );
694
695
UNIT_ASSERT_EQUAL (2 , info.SeqNo );
@@ -724,7 +725,7 @@ namespace NYdb::NTopic::NTests {
724
725
auto const events = tracingBackend->GetEvents ();
725
726
UNIT_ASSERT (expected.Matches (events));
726
727
727
- ReadSession. Close ();
728
+ ReadSession-> Close ();
728
729
}
729
730
}
730
731
}
0 commit comments