Skip to content

Commit fa0bb03

Browse files
committed
GODRIVER-3140 Update help function.
1 parent 18a7e7e commit fa0bb03

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mongo/integration/json_helpers_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ func createClientOptions(t testing.TB, opts bson.Raw) *options.ClientOptions {
114114
case "socketTimeoutMS":
115115
st := convertValueToMilliseconds(t, opt)
116116
clientOpts.SetSocketTimeout(st)
117+
case "timeoutMS":
118+
clientOpts.SetTimeout(time.Duration(opt.Int32()) * time.Millisecond)
117119
case "minPoolSize":
118120
clientOpts.SetMinPoolSize(uint64(opt.AsInt64()))
119121
case "maxPoolSize":

0 commit comments

Comments
 (0)