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;
15
15
beforeAll ( async ( ) => {
16
16
mongoServer = new MongodbMemoryServer ( { instance : { dbName : 'northwind' } } ) ;
17
17
const mongoUri = await mongoServer . getConnectionString ( ) ;
18
- mongoose . set ( 'useCreateIndex' , true ) ;
19
18
const opts = { useNewUrlParser : true , useUnifiedTopology : true } ;
20
19
mongoose . connect ( mongoUri , opts ) ;
21
20
mongoose . connection . once ( 'disconnected' , ( ) => {
@@ -25,7 +24,7 @@ beforeAll(async () => {
25
24
db = con . db ( 'northwind' ) ;
26
25
await seed ( db ) ;
27
26
// take time to mongo create indexes if needed
28
- await new Promise ( ( resolve ) => setTimeout ( resolve , 10000 ) ) ;
27
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 3000 ) ) ;
29
28
} ) ;
30
29
31
30
afterAll ( async ( ) => {
You can’t perform that action at this time.
0 commit comments