Skip to content

Commit 4d0330a

Browse files
Use find instead of findOne in pending response unified spec tests
1 parent bb4e2db commit 4d0330a

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

source/client-side-operations-timeout/tests/pending-response.json

Lines changed: 6 additions & 6 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/pending-response.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tests:
7171
expectError:
7272
isTimeoutError: true
7373
# Execute a subsequent operation to complete the read.
74-
- name: findOne
74+
- name: find
7575
object: *collection
7676
arguments:
7777
filter: {_id: 1}
@@ -128,8 +128,8 @@ tests:
128128
isTimeoutError: true
129129
# Execute a subsequent operation to complete the read. We expect failure
130130
# in the pending read, resulting in a closed connection. However, the
131-
# findOne should retry and succeed.
132-
- name: findOne
131+
# find should retry and succeed.
132+
- name: find
133133
object: *collection
134134
arguments:
135135
filter: {_id: 1}
@@ -191,7 +191,7 @@ tests:
191191
expectError:
192192
isTimeoutError: true
193193
# Execute a subsequent operation to complete the read.
194-
- name: findOne
194+
- name: find
195195
object: *collection
196196
arguments:
197197
timeoutMS: 200
@@ -248,15 +248,15 @@ tests:
248248
expectError:
249249
isTimeoutError: true
250250
# Execute a subsequent operation with a timeout less than the block time.
251-
- name: findOne
251+
- name: find
252252
object: *collection
253253
arguments:
254254
timeoutMS: 50
255255
filter: {_id: 1}
256256
expectError:
257257
isTimeoutError: true
258258
# Execute a final operation to drain the buffer.
259-
- name: findOne
259+
- name: find
260260
object: *collection
261261
arguments:
262262
filter: {_id: 1}
@@ -320,7 +320,7 @@ tests:
320320
arguments:
321321
ms: 500
322322
# Execute a subsequent operation with a timeout less than the block time.
323-
- name: findOne
323+
- name: find
324324
object: *collection
325325
arguments:
326326
timeoutMS: 50

0 commit comments

Comments
 (0)