File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -141,13 +141,8 @@ async fn bson_size_limits() -> Result<()> {
141
141
. disable_crypt_shared ( * DISABLE_CRYPT_SHARED )
142
142
. build ( )
143
143
. await ?;
144
- let coll = client_encrypted
145
- . database ( "db" )
146
- . collection :: < Document > ( "coll" ) ;
147
- let coll2 = client_encrypted
148
- . database ( "db" )
149
- . collection :: < Document > ( "coll2" ) ;
150
- coll2. drop ( ) . await ?;
144
+ let db = client_encrypted. database ( "db" ) ;
145
+ let coll = db. collection :: < Document > ( "coll" ) ;
151
146
152
147
// Tests
153
148
// Test operation 1
@@ -230,6 +225,12 @@ async fn bson_size_limits() -> Result<()> {
230
225
return Ok ( ( ) ) ;
231
226
}
232
227
228
+ let coll2 = db. collection :: < Document > ( "coll2" ) ;
229
+ coll2. drop ( ) . await ?;
230
+ db. create_collection ( "coll2" )
231
+ . encrypted_fields ( load_testdata ( "limits/limits-encryptedFields.json" ) ?)
232
+ . await ?;
233
+
233
234
// Test operation 7
234
235
let long_string = "a" . repeat ( STRING_LEN_2_MIB - 1_500 ) ;
235
236
let write_models = vec ! [
You can’t perform that action at this time.
0 commit comments