@@ -69,6 +69,7 @@ func TestClientOptions(t *testing.T) {
6969 {"MaxConnIdleTime" , (* ClientOptions ).SetMaxConnIdleTime , 5 * time .Second , "MaxConnIdleTime" , true },
7070 {"MaxPoolSize" , (* ClientOptions ).SetMaxPoolSize , uint64 (250 ), "MaxPoolSize" , true },
7171 {"MinPoolSize" , (* ClientOptions ).SetMinPoolSize , uint64 (10 ), "MinPoolSize" , true },
72+ {"MaxConnecting" , (* ClientOptions ).SetMaxConnecting , uint64 (10 ), "MaxConnecting" , true },
7273 {"PoolMonitor" , (* ClientOptions ).SetPoolMonitor , & event.PoolMonitor {}, "PoolMonitor" , false },
7374 {"Monitor" , (* ClientOptions ).SetMonitor , & event.CommandMonitor {}, "Monitor" , false },
7475 {"ReadConcern" , (* ClientOptions ).SetReadConcern , readconcern .Majority (), "ReadConcern" , false },
@@ -338,6 +339,16 @@ func TestClientOptions(t *testing.T) {
338339 "mongodb://localhost/?maxPoolSize=256" ,
339340 baseClient ().SetMaxPoolSize (256 ),
340341 },
342+ {
343+ "MinPoolSize" ,
344+ "mongodb://localhost/?minPoolSize=256" ,
345+ baseClient ().SetMinPoolSize (256 ),
346+ },
347+ {
348+ "MaxConnecting" ,
349+ "mongodb://localhost/?maxConnecting=10" ,
350+ baseClient ().SetMaxConnecting (10 ),
351+ },
341352 {
342353 "ReadConcern" ,
343354 "mongodb://localhost/?readConcernLevel=linearizable" ,
0 commit comments