Skip to content

Commit a435efe

Browse files
GODRIVER-3444 Update tests to reduce event race
1 parent 5e7921b commit a435efe

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

testdata/client-side-operations-timeout/tailable-awaitData.json

+20
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,26 @@
422422
{
423423
"description": "apply remaining timeoutMS if less than maxAwaitTimeMS",
424424
"operations": [
425+
{
426+
"name": "failPoint",
427+
"object": "testRunner",
428+
"arguments": {
429+
"client": "failPointClient",
430+
"failPoint": {
431+
"configureFailPoint": "failCommand",
432+
"mode": {
433+
"times": 1
434+
},
435+
"data": {
436+
"failCommands": [
437+
"getMore"
438+
],
439+
"blockConnection": true,
440+
"blockTimeMS": 30
441+
}
442+
}
443+
}
444+
},
425445
{
426446
"name": "createFindCursor",
427447
"object": "collection",

testdata/client-side-operations-timeout/tailable-awaitData.yml

+11
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,17 @@ tests:
249249

250250
- description: "apply remaining timeoutMS if less than maxAwaitTimeMS"
251251
operations:
252+
- name: failPoint
253+
object: testRunner
254+
arguments:
255+
client: *failPointClient
256+
failPoint:
257+
configureFailPoint: failCommand
258+
mode: { times: 1 }
259+
data:
260+
failCommands: ["getMore"]
261+
blockConnection: true
262+
blockTimeMS: 30
252263
- name: createFindCursor
253264
object: *collection
254265
arguments:

0 commit comments

Comments
 (0)