Skip to content

Commit 3d3ffaf

Browse files
authored
PYTHON-3410 Resync CSOT spec tests to be less flaky (#1087)
1 parent 614e22c commit 3d3ffaf

File tree

4 files changed

+89
-90
lines changed

4 files changed

+89
-90
lines changed

test/csot/bulkWrite.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
"useMultipleMongoses": false,
2020
"observeEvents": [
2121
"commandStartedEvent"
22-
]
22+
],
23+
"uriOptions": {
24+
"w": 1
25+
}
2326
}
2427
},
2528
{
@@ -48,6 +51,13 @@
4851
{
4952
"description": "timeoutMS applied to entire bulkWrite, not individual commands",
5053
"operations": [
54+
{
55+
"name": "insertOne",
56+
"object": "collection",
57+
"arguments": {
58+
"document": {}
59+
}
60+
},
5161
{
5262
"name": "failPoint",
5363
"object": "testRunner",
@@ -69,15 +79,6 @@
6979
}
7080
}
7181
},
72-
{
73-
"name": "find",
74-
"object": "collection",
75-
"arguments": {
76-
"filter": {
77-
"_id": 1
78-
}
79-
}
80-
},
8182
{
8283
"name": "bulkWrite",
8384
"object": "collection",
@@ -114,10 +115,10 @@
114115
"events": [
115116
{
116117
"commandStartedEvent": {
117-
"commandName": "find",
118+
"commandName": "insert",
118119
"databaseName": "test",
119120
"command": {
120-
"find": "coll"
121+
"insert": "coll"
121122
}
122123
}
123124
},

0 commit comments

Comments
 (0)