@@ -77,10 +77,11 @@ TEST_F(RealClientTest, BasicPutGetOperations) {
7777 const std::string rdma_devices = (FLAGS_protocol == std::string (" rdma" ))
7878 ? FLAGS_device_name
7979 : std::string (" " );
80- ASSERT_EQ (py_client_->setup (" localhost:17813" , " P2PHANDSHAKE" ,
81- 16 * 1024 * 1024 , 16 * 1024 * 1024 ,
82- FLAGS_protocol, rdma_devices, master_address_),
83- 0 );
80+ ASSERT_EQ (
81+ py_client_->setup_real (" localhost:17813" , " P2PHANDSHAKE" ,
82+ 16 * 1024 * 1024 , 16 * 1024 * 1024 ,
83+ FLAGS_protocol, rdma_devices, master_address_),
84+ 0 );
8485
8586 const std::string test_data = " Hello, RealClient!" ;
8687 const std::string key = " test_key_realclient" ;
@@ -126,10 +127,11 @@ TEST_F(RealClientTest, GetWithLeaseTimeOut) {
126127 const std::string rdma_devices = (FLAGS_protocol == std::string (" rdma" ))
127128 ? FLAGS_device_name
128129 : std::string (" " );
129- ASSERT_EQ (py_client_->setup (" localhost:17813" , " P2PHANDSHAKE" ,
130- 512 * 1024 * 1024 , 512 * 1024 * 1024 ,
131- FLAGS_protocol, rdma_devices, master_address_),
132- 0 );
130+ ASSERT_EQ (
131+ py_client_->setup_real (" localhost:17813" , " P2PHANDSHAKE" ,
132+ 512 * 1024 * 1024 , 512 * 1024 * 1024 ,
133+ FLAGS_protocol, rdma_devices, master_address_),
134+ 0 );
133135
134136 const size_t data_size = 256 * 1024 * 1024 ; // 256MB
135137 std::string test_data (data_size, ' A' ); // Fill with 'A' characters
@@ -257,9 +259,9 @@ TEST_F(RealClientTest, ConcurrentPutGetWithLeaseTimeOut) {
257259 const std::string rdma_devices = (FLAGS_protocol == std::string (" rdma" ))
258260 ? FLAGS_device_name
259261 : std::string (" " );
260- ASSERT_EQ (py_client_->setup (" localhost:17813" , " P2PHANDSHAKE" , segment_size ,
261- segment_size, FLAGS_protocol, rdma_devices ,
262- master_address_),
262+ ASSERT_EQ (py_client_->setup_real (" localhost:17813" , " P2PHANDSHAKE" ,
263+ segment_size, segment_size, FLAGS_protocol ,
264+ rdma_devices, master_address_),
263265 0 );
264266
265267 // Test Single Get Operation with Concurrent Put
@@ -512,11 +514,11 @@ TEST_F(RealClientTest, TestSetupExistTransferEngine) {
512514 } else {
513515 ASSERT_TRUE (false ) << " Unsupported protocol: " << FLAGS_protocol;
514516 }
515- ASSERT_EQ (
516- py_client_-> setup ( " localhost:17813 " , " P2PHANDSHAKE " , 16 * 1024 * 1024 ,
517- 16 * 1024 * 1024 , FLAGS_protocol, rdma_devices,
518- master_address_, transfer_engine),
519- 0 );
517+ ASSERT_EQ (py_client_-> setup_real ( " localhost:17813 " , " P2PHANDSHAKE " ,
518+ 16 * 1024 * 1024 , 16 * 1024 * 1024 ,
519+ FLAGS_protocol, rdma_devices,
520+ master_address_, transfer_engine),
521+ 0 );
520522
521523 const std::string test_data = " Hello, RealClient!" ;
522524 const std::string key = " test_key_realclient" ;
@@ -541,10 +543,11 @@ TEST_F(RealClientTest, TestBatchPutAndGetMultiBuffers) {
541543 const std::string rdma_devices = (FLAGS_protocol == std::string (" rdma" ))
542544 ? FLAGS_device_name
543545 : std::string (" " );
544- ASSERT_EQ (py_client_->setup (" localhost:17813" , " P2PHANDSHAKE" ,
545- 16 * 1024 * 1024 , 16 * 1024 * 1024 ,
546- FLAGS_protocol, rdma_devices, master_address_),
547- 0 );
546+ ASSERT_EQ (
547+ py_client_->setup_real (" localhost:17813" , " P2PHANDSHAKE" ,
548+ 16 * 1024 * 1024 , 16 * 1024 * 1024 ,
549+ FLAGS_protocol, rdma_devices, master_address_),
550+ 0 );
548551
549552 std::string test_data (1000 , ' 1' );
550553 std::string dst_data (1000 , ' 0' );
0 commit comments