From 489b56ba93380b57d06a8b532ae07921009a4a09 Mon Sep 17 00:00:00 2001 From: Qingyang Hu Date: Fri, 31 May 2024 16:13:34 -0400 Subject: [PATCH] GODRIVER-3140 Update help function. --- mongo/integration/json_helpers_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mongo/integration/json_helpers_test.go b/mongo/integration/json_helpers_test.go index 463d1e54dc3..c051514992d 100644 --- a/mongo/integration/json_helpers_test.go +++ b/mongo/integration/json_helpers_test.go @@ -114,6 +114,8 @@ func createClientOptions(t testing.TB, opts bson.Raw) *options.ClientOptions { case "socketTimeoutMS": st := convertValueToMilliseconds(t, opt) clientOpts.SetSocketTimeout(st) + case "timeoutMS": + clientOpts.SetTimeout(time.Duration(opt.Int64()) * time.Millisecond) case "minPoolSize": clientOpts.SetMinPoolSize(uint64(opt.AsInt64())) case "maxPoolSize":