MCPcopy
hub / github.com/parse-community/parse-server / shutdownServer

Function shutdownServer

spec/helper.js:181–187  ·  view source on GitHub ↗
(_parseServer)

Source from the content-addressed store, hash-verified

179const openConnections = new Connections();
180
181const 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
190const reconfigureServer = async (changedConfiguration = {}) => {

Callers 1

reconfigureServerFunction · 0.85

Calls 3

sleepFunction · 0.85
countMethod · 0.65
handleShutdownMethod · 0.45

Tested by

no test coverage detected