You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/integration/client-side-encryption/client_side_encryption.prose.test.js
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -552,14 +552,16 @@ describe('Client Side Encryption Prose Tests', function () {
552
552
constlimitsKey=loadLimits('limits-key.json');
553
553
constlimitsDoc=loadLimits('limits-doc.json');
554
554
555
-
before(function(){
556
-
// First, perform the setup.
555
+
letfirstTimeSetup=true;
556
+
beforeEach(asyncfunction(){
557
+
if(firstTimeSetup){
558
+
firstTimeSetup=false;
559
+
// First, perform the setup.
557
560
558
-
// #. Create a MongoClient without encryption enabled (referred to as ``client``).
559
-
this.client=this.configuration.newClient();
561
+
// #. Create a MongoClient without encryption enabled (referred to as ``client``).
562
+
this.client=this.configuration.newClient();
560
563
561
-
return(
562
-
this.client
564
+
awaitthis.client
563
565
.connect()
564
566
// #. Using ``client``, drop and create the collection ``db.coll`` configured with the included JSON schema `limits/limits-schema.json <../limits/limits-schema.json>`_.
0 commit comments