File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2015,9 +2015,18 @@ describe('Bulk', function () {
2015
2015
client = config . newClient ( ) ;
2016
2016
await client . connect ( ) ;
2017
2017
2018
- collection = client
2018
+ try {
2019
+ await client
2020
+ . db ( 'bulk_operation_writes_test' )
2021
+ . collection ( 'bulk_write_transaction_test' )
2022
+ . drop ( ) ;
2023
+ } catch ( _ ) {
2024
+ // do not care
2025
+ }
2026
+
2027
+ collection = await client
2019
2028
. db ( 'bulk_operation_writes_test' )
2020
- . collection ( 'bulk_write_transaction_test' ) ;
2029
+ . createCollection ( 'bulk_write_transaction_test' ) ;
2021
2030
2022
2031
await collection . deleteMany ( { } ) ;
2023
2032
} ) ;
@@ -2027,7 +2036,7 @@ describe('Bulk', function () {
2027
2036
async test ( ) {
2028
2037
const session = client . startSession ( ) ;
2029
2038
session . startTransaction ( {
2030
- readConcern : { level : 'snapshot ' } ,
2039
+ readConcern : { level : 'majority ' } ,
2031
2040
writeConcern : { w : 'majority' }
2032
2041
} ) ;
2033
2042
@@ -2077,7 +2086,7 @@ describe('Bulk', function () {
2077
2086
2078
2087
await session . abortTransaction ( ) ;
2079
2088
} ,
2080
- { readConcern : { level : 'snapshot ' } , writeConcern : { w : 'majority' } }
2089
+ { readConcern : { level : 'majority ' } , writeConcern : { w : 'majority' } }
2081
2090
) ;
2082
2091
2083
2092
await session . endSession ( ) ;
You can’t perform that action at this time.
0 commit comments