You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/spec/json/connection-monitoring-and-pooling/README.rst
+14-3
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,20 @@ Unit Test Format:
36
36
37
37
All Unit Tests have some of the following fields:
38
38
39
-
- ``poolOptions``: if present, connection pool options to use when creating a pool
39
+
- ``poolOptions``: If present, connection pool options to use when creating a pool;
40
+
both `standard ConnectionPoolOptions <https://github.com/mongodb/specifications/blob/master/source/connection-monitoring-and-pooling/connection-monitoring-and-pooling.rst#connection-pool-options-1>`__
41
+
and the following test-specific options are allowed:
42
+
43
+
- ``backgroundThreadIntervalMS``: A time interval between the end of a
44
+
`Background Thread Run <https://github.com/mongodb/specifications/blob/master/source/connection-monitoring-and-pooling/connection-monitoring-and-pooling.rst#background-thread>`__
45
+
and the beginning of the next Run. If a Connection Pool does not implement a Background Thread, the Test Runner MUST ignore the option.
46
+
If the option is not specified, an implementation is free to use any value it finds reasonable.
47
+
48
+
Possible values (0 is not allowed):
49
+
50
+
- A negative value: never begin a Run.
51
+
- A positive value: the interval between Runs in milliseconds.
52
+
40
53
- ``operations``: A list of operations to perform. All operations support the following fields:
41
54
42
55
- ``name``: A string describing which operation to issue.
@@ -155,8 +168,6 @@ For each YAML file with ``style: unit``:
155
168
156
169
- If ``poolOptions`` is specified, use those options to initialize both pools
157
170
- The returned pool must have an ``address`` set as a string value.
158
-
- If the pool uses a background thread to satisfy ``minPoolSize``, ensure it
159
-
attempts to create a new connection every 50ms.
160
171
161
172
- Process each ``operation`` in ``operations`` (on the main thread)
0 commit comments