MCPcopy
hub / github.com/mongodb/node-mongodb-native / closePool

Method closePool

test/tools/cmap_spec_runner.ts:346–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

344 }
345
346 closePool() {
347 this.#server.pool = this.#originalServerPool;
348 ALL_POOL_EVENTS.forEach(ev => this.pool.removeAllListeners(ev));
349 this.pool.close();
350 }
351
352 async tearDown() {
353 if (this.pool) {

Callers 1

tearDownMethod · 0.95

Calls 2

removeAllListenersMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected