File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,14 @@ const openConnections = new Connections();
163163const shutdownServer = async ( _parseServer ) => {
164164 _parseServer . handleShutdown ( ) ;
165165 // Connection close events are not immediate on node 10+, so wait a bit
166- await sleep ( 0 ) ;
166+ await sleep ( 100 ) ;
167167 // Jasmine process counts as one open connection
168168 const connectionMessage = `There were ${ openConnections . count ( ) } open connections to the server left after the test finished` ;
169169 if ( process . env . PARSE_SERVER_TEST_CACHE === 'redis' ) {
170170 if ( openConnections . count ( ) > 1 ) {
171171 console . log ( connectionMessage ) ;
172- const count = await getConnectionsCount ( _parseServer . server ) ;
172+ // const count = await getConnectionsCount(_parseServer.server);
173+ const count = 0 ;
173174 expect ( openConnections . count ( ) > 1 ) . toBeFalsy ( `${ connectionMessage } but there are ${ count } connections in the server` ) ;
174175 }
175176 } else {
You can’t perform that action at this time.
0 commit comments