@@ -98,17 +98,12 @@ let parseServer;
9898
9999const reconfigureServer = async ( changedConfiguration = { } ) => {
100100 if ( parseServer ) {
101- try {
102- await parseServer . handleShutdown ( ) ;
103- // Connection close events are not immediate on node 10+, so wait a bit
104- sleep ( 0 ) ;
105- } catch ( e ) {
106- console . error ( 'Failed to shutdown the server' , e ) ;
107- }
101+ await parseServer . handleShutdown ( ) ;
102+ // Connection close events are not immediate on node 10+, so wait a bit
103+ sleep ( 0 ) ;
108104 parseServer = undefined ;
109105 return reconfigureServer ( changedConfiguration ) ;
110106 }
111-
112107 didChangeConfiguration = Object . keys ( changedConfiguration ) . length !== 0 ;
113108 const newConfiguration = Object . assign ( { } , defaultConfiguration , changedConfiguration || { } , {
114109 mountPath,
@@ -171,15 +166,11 @@ beforeAll(async () => {
171166} ) ;
172167
173168afterEach ( async ( ) => {
174- try {
175- await Parse . User . logOut ( ) ;
176- Parse . Storage . _clear ( ) ;
177- await TestUtils . destroyAllDataPermanently ( true ) ;
178- if ( didChangeConfiguration ) {
179- await reconfigureServer ( ) ;
180- }
181- } catch ( e ) {
182- console . error ( 'Failed to tear down the server' , e ) ;
169+ await Parse . User . logOut ( ) ;
170+ Parse . Storage . _clear ( ) ;
171+ await TestUtils . destroyAllDataPermanently ( true ) ;
172+ if ( didChangeConfiguration ) {
173+ await reconfigureServer ( ) ;
183174 }
184175} ) ;
185176
0 commit comments