(_parseServer)
| 179 | const openConnections = new Connections(); |
| 180 | |
| 181 | const shutdownServer = async (_parseServer) => { |
| 182 | await _parseServer.handleShutdown(); |
| 183 | // Connection close events are not immediate on node 10+, so wait a bit |
| 184 | await sleep(0); |
| 185 | expect(openConnections.count() > 0).toBeFalsy(`There were ${openConnections.count()} open connections to the server left after the test finished`); |
| 186 | parseServer = undefined; |
| 187 | }; |
| 188 | |
| 189 | // Allows testing specific configurations of Parse Server |
| 190 | const reconfigureServer = async (changedConfiguration = {}) => { |
no test coverage detected