@@ -69,6 +69,7 @@ func TestClientOptions(t *testing.T) {
69
69
{"MaxConnIdleTime" , (* ClientOptions ).SetMaxConnIdleTime , 5 * time .Second , "MaxConnIdleTime" , true },
70
70
{"MaxPoolSize" , (* ClientOptions ).SetMaxPoolSize , uint64 (250 ), "MaxPoolSize" , true },
71
71
{"MinPoolSize" , (* ClientOptions ).SetMinPoolSize , uint64 (10 ), "MinPoolSize" , true },
72
+ {"MaxConnecting" , (* ClientOptions ).SetMaxConnecting , uint64 (10 ), "MaxConnecting" , true },
72
73
{"PoolMonitor" , (* ClientOptions ).SetPoolMonitor , & event.PoolMonitor {}, "PoolMonitor" , false },
73
74
{"Monitor" , (* ClientOptions ).SetMonitor , & event.CommandMonitor {}, "Monitor" , false },
74
75
{"ReadConcern" , (* ClientOptions ).SetReadConcern , readconcern .Majority (), "ReadConcern" , false },
@@ -338,6 +339,16 @@ func TestClientOptions(t *testing.T) {
338
339
"mongodb://localhost/?maxPoolSize=256" ,
339
340
baseClient ().SetMaxPoolSize (256 ),
340
341
},
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
+ },
341
352
{
342
353
"ReadConcern" ,
343
354
"mongodb://localhost/?readConcernLevel=linearizable" ,
0 commit comments