File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
examples/northwind/__tests__ Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ let db;
1515beforeAll ( async ( ) => {
1616 mongoServer = new MongodbMemoryServer ( { instance : { dbName : 'northwind' } } ) ;
1717 const mongoUri = await mongoServer . getConnectionString ( ) ;
18- mongoose . set ( 'useCreateIndex' , true ) ;
1918 const opts = { useNewUrlParser : true , useUnifiedTopology : true } ;
2019 mongoose . connect ( mongoUri , opts ) ;
2120 mongoose . connection . once ( 'disconnected' , ( ) => {
@@ -25,7 +24,7 @@ beforeAll(async () => {
2524 db = con . db ( 'northwind' ) ;
2625 await seed ( db ) ;
2726 // take time to mongo create indexes if needed
28- await new Promise ( ( resolve ) => setTimeout ( resolve , 10000 ) ) ;
27+ await new Promise ( ( resolve ) => setTimeout ( resolve , 3000 ) ) ;
2928} ) ;
3029
3130afterAll ( async ( ) => {
You can’t perform that action at this time.
0 commit comments