Skip to content

Commit 6a1c9fb

Browse files
prepopulate pool
1 parent 57435eb commit 6a1c9fb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

source/client-side-operations-timeout/tests/runCursorCommand.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/client-side-operations-timeout/tests/runCursorCommand.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ tests:
7070
runOnRequirements:
7171
- serverless: forbid
7272
operations:
73+
# pre-populate the pool with a connection
74+
- name: find
75+
object: collection
76+
arguments:
77+
filter: { _id: 0 }
78+
expectResult: []
7379
# Block find/getMore for 60ms.
7480
- name: failPoint
7581
object: testRunner
@@ -97,6 +103,9 @@ tests:
97103
expectEvents:
98104
- client: *client
99105
events:
106+
# first find is from the initial find to populate the connection poo
107+
- commandStartedEvent:
108+
commandName: find
100109
- commandStartedEvent:
101110
commandName: find
102111
command:

0 commit comments

Comments
 (0)