File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ beforeAll(async () => {
2222 db2 = con2 . db ( await mongoServer1 . getDbName ( ) ) ;
2323} ) ;
2424
25- afterAll ( ( ) => {
25+ afterAll ( async ( ) => {
2626 if ( con1 ) con1 . close ( ) ;
2727 if ( con2 ) con2 . close ( ) ;
28- if ( mongoServer1 ) mongoServer1 . stop ( ) ;
29- if ( mongoServer2 ) mongoServer2 . stop ( ) ;
28+ if ( mongoServer1 ) await mongoServer1 . stop ( ) ;
29+ if ( mongoServer2 ) await mongoServer2 . stop ( ) ;
3030} ) ;
3131
3232describe ( 'Multiple mongoServers' , ( ) => {
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ beforeAll(async () => {
1414 db = con . db ( await mongoServer . getDbName ( ) ) ;
1515} ) ;
1616
17- afterAll ( ( ) => {
17+ afterAll ( async ( ) => {
1818 if ( con ) con . close ( ) ;
19- if ( mongoServer ) mongoServer . stop ( ) ;
19+ if ( mongoServer ) await mongoServer . stop ( ) ;
2020} ) ;
2121
2222describe ( 'Single mongoServer' , ( ) => {
You can’t perform that action at this time.
0 commit comments