File tree Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Expand file tree Collapse file tree 2 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,6 @@ export class TestConfiguration {
204204 throw new Error ( `Cannot use options to specify host/port, must be in ${ urlOrQueryOptions } ` ) ;
205205 }
206206
207- if ( serverOptions . autoEncryption ) {
208- serverOptions . autoEncryption . extraOptions = {
209- mongocryptdBypassSpawn : true ,
210- mongocryptdURI : 'mongodb://localhost:3000'
211- }
212- }
213-
214207 return new MongoClient ( urlOrQueryOptions , serverOptions ) ;
215208 }
216209
@@ -469,8 +462,7 @@ export class AlpineTestConfiguration extends TestConfiguration {
469462 const extraOptions : MongoClientOptions [ 'autoEncryption' ] [ 'extraOptions' ] = {
470463 ...options . autoEncryption . extraOptions ,
471464 mongocryptdBypassSpawn : true ,
472- mongocryptdURI : 'mongodb://localhost:3000'
473- // mongocryptdURI: process.env.MONGOCRYPTD_URI
465+ mongocryptdURI : process . env . MONGOCRYPTD_URI
474466 }
475467 options . autoEncryption . extraOptions = extraOptions ;
476468 }
Original file line number Diff line number Diff line change @@ -100,16 +100,11 @@ function translateClientOptions(options) {
100100 } ;
101101 }
102102
103- // if (process.env.CRYPT_SHARED_LIB_PATH) {
104- // options.autoEncryption.extraOptions = {
105- // cryptSharedLibPath: process.env.CRYPT_SHARED_LIB_PATH
106- // };
107- // }
108-
109- // options.autoEncryption.extraOptions = {
110- // mongocryptdBypassSpawn: true,
111- // mongocryptdURI: 'mongodb://localhost:3000'
112- // }
103+ if ( process . env . CRYPT_SHARED_LIB_PATH ) {
104+ options . autoEncryption . extraOptions = {
105+ cryptSharedLibPath : process . env . CRYPT_SHARED_LIB_PATH
106+ } ;
107+ }
113108
114109 options . autoEncryption . kmsProviders = kmsProviders ;
115110 }
You can’t perform that action at this time.
0 commit comments