@@ -122,15 +122,15 @@ async fn get_more() {
122122#[ function_name:: named]
123123#[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
124124#[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
125- async fn not_master_keep_pool ( ) {
126- async fn not_master_keep_pool_test (
125+ async fn notwritableprimary_keep_pool ( ) {
126+ async fn notwritableprimary_keep_pool_test (
127127 client : EventClient ,
128128 _db : Database ,
129129 coll : Collection < Document > ,
130130 ) {
131131 // This test requires server version 4.2 or higher.
132132 if client. server_version_lt ( 4 , 2 ) {
133- log_uncaptured ( "skipping not_master_keep_pool due to server version < 4.2" ) ;
133+ log_uncaptured ( "skipping notwritableprimary_keep_pool due to server version < 4.2" ) ;
134134 return ;
135135 }
136136
@@ -167,21 +167,22 @@ async fn not_master_keep_pool() {
167167 assert_eq ! ( client. count_pool_cleared_events( ) , 0 ) ;
168168 }
169169
170- run_test ( function_name ! ( ) , not_master_keep_pool_test ) . await ;
170+ run_test ( function_name ! ( ) , notwritableprimary_keep_pool_test ) . await ;
171171}
172172
173- #[ function_name:: named]
174173#[ cfg_attr( feature = "tokio-runtime" , tokio:: test) ]
175174#[ cfg_attr( feature = "async-std-runtime" , async_std:: test) ]
176- async fn not_master_reset_pool ( ) {
177- async fn not_master_reset_pool_test (
175+ async fn notwritableprimary_reset_pool ( ) {
176+ async fn notwritableprimary_reset_pool_test (
178177 client : EventClient ,
179178 _db : Database ,
180179 coll : Collection < Document > ,
181180 ) {
182181 // This test must only run on 4.0 servers.
183182 if !client. server_version_eq ( 4 , 0 ) {
184- log_uncaptured ( "skipping not_master_reset_pool due to unsupported server version" ) ;
183+ log_uncaptured (
184+ "skipping notwritableprimary_reset_pool due to unsupported server version" ,
185+ ) ;
185186 return ;
186187 }
187188
@@ -218,7 +219,11 @@ async fn not_master_reset_pool() {
218219 . expect ( "insert should have succeeded" ) ;
219220 }
220221
221- run_test ( function_name ! ( ) , not_master_reset_pool_test) . await ;
222+ run_test (
223+ "notwritableprimary_reset_pool" ,
224+ notwritableprimary_reset_pool_test,
225+ )
226+ . await ;
222227}
223228
224229#[ function_name:: named]
0 commit comments