MCPcopy
hub / github.com/brianc/node-postgres / wait

Function wait

packages/pg-pool/test/idle-timeout.js:12–12  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

10const Pool = require('../')
11
12const wait = (time) => new Promise((resolve) => setTimeout(resolve, time))
13
14describe('idle timeout', () => {
15 it('should timeout and remove the client', (done) => {

Callers 1

idle-timeout.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected