File tree Expand file tree Collapse file tree 13 files changed +7
-88
lines changed Expand file tree Collapse file tree 13 files changed +7
-88
lines changed Original file line number Diff line number Diff line change @@ -700,7 +700,8 @@ def run_scenario(self):
700700
701701 database_name = scenario_def ['database_name' ]
702702 collection_name = scenario_def ['collection_name' ]
703- write_concern_db = client .get_database (
703+ # Don't use the test client to load data.
704+ write_concern_db = client_context .client .get_database (
704705 database_name , write_concern = WriteConcern (w = 'majority' ))
705706 write_concern_coll = write_concern_db [collection_name ]
706707 write_concern_coll .drop ()
Original file line number Diff line number Diff line change 1515 {
1616 "description" : " causal consistency" ,
1717 "clientOptions" : {
18- "retryWrites" : false
18+ "retryWrites" : false
1919 },
2020 "operations" : [
2121 {
165165 {
166166 "description" : " causal consistency disabled" ,
167167 "clientOptions" : {
168- "retryWrites" : false
168+ "retryWrites" : false
169169 },
170170 "sessionOptions" : {
171171 "session0" : {
Original file line number Diff line number Diff line change 673673 {
674674 "description" : " reset session state commit" ,
675675 "clientOptions" : {
676- "retryWrites" : false
676+ "retryWrites" : false
677677 },
678678 "operations" : [
679679 {
795795 {
796796 "description" : " reset session state abort" ,
797797 "clientOptions" : {
798- "retryWrites" : false
798+ "retryWrites" : false
799799 },
800800 "operations" : [
801801 {
Original file line number Diff line number Diff line change 2525 "tests" : [
2626 {
2727 "description" : " delete" ,
28- "clientOptions" : {
29- "retryWrites" : false
30- },
3128 "operations" : [
3229 {
3330 "name" : " startTransaction" ,
187184 },
188185 {
189186 "description" : " collection writeConcern ignored for delete" ,
190- "clientOptions" : {
191- "retryWrites" : false
192- },
193187 "operations" : [
194188 {
195189 "name" : " startTransaction" ,
Original file line number Diff line number Diff line change 1919 "tests" : [
2020 {
2121 "description" : " findOneAndDelete" ,
22- "clientOptions" : {
23- "retryWrites" : false
24- },
2522 "operations" : [
2623 {
2724 "name" : " startTransaction" ,
132129 },
133130 {
134131 "description" : " collection writeConcern ignored for findOneAndDelete" ,
135- "clientOptions" : {
136- "retryWrites" : false
137- },
138132 "operations" : [
139133 {
140134 "name" : " startTransaction" ,
Original file line number Diff line number Diff line change 1919 "tests" : [
2020 {
2121 "description" : " findOneAndReplace" ,
22- "clientOptions" : {
23- "retryWrites" : false
24- },
2522 "operations" : [
2623 {
2724 "name" : " startTransaction" ,
159156 },
160157 {
161158 "description" : " collection writeConcern ignored for findOneAndReplace" ,
162- "clientOptions" : {
163- "retryWrites" : false
164- },
165159 "operations" : [
166160 {
167161 "name" : " startTransaction" ,
Original file line number Diff line number Diff line change 1919 "tests" : [
2020 {
2121 "description" : " findOneAndUpdate" ,
22- "clientOptions" : {
23- "retryWrites" : false
24- },
2522 "operations" : [
2623 {
2724 "name" : " startTransaction" ,
313310 },
314311 {
315312 "description" : " collection writeConcern ignored for findOneAndUpdate" ,
316- "clientOptions" : {
317- "retryWrites" : false
318- },
319313 "operations" : [
320314 {
321315 "name" : " startTransaction" ,
Original file line number Diff line number Diff line change 430430 {
431431 "description" : " collection writeConcern without transaction" ,
432432 "clientOptions" : {
433- "retryWrites" : false
433+ "retryWrites" : false
434434 },
435435 "operations" : [
436436 {
Original file line number Diff line number Diff line change 1515 "tests" : [
1616 {
1717 "description" : " remain pinned after non-transient Interrupted error on insertOne" ,
18- "clientOptions" : {
19- "retryWrites" : false
20- },
2118 "useMultipleMongoses" : true ,
2219 "operations" : [
2320 {
168165 },
169166 {
170167 "description" : " unpin after transient error within a transaction" ,
171- "clientOptions" : {
172- "retryWrites" : false
173- },
174168 "useMultipleMongoses" : true ,
175169 "operations" : [
176170 {
Original file line number Diff line number Diff line change 925925 },
926926 {
927927 "description" : " unpin after transient error within a transaction" ,
928- "clientOptions" : {
929- "retryWrites" : false
930- },
931928 "useMultipleMongoses" : true ,
932929 "operations" : [
933930 {
10711068 "description" : " unpin after transient error within a transaction and commit" ,
10721069 "useMultipleMongoses" : true ,
10731070 "clientOptions" : {
1074- "retryWrites" : false ,
10751071 "heartbeatFrequencyMS" : 5000
10761072 },
10771073 "operations" : [
You can’t perform that action at this time.
0 commit comments