Skip to content

A way to close connection with pool #40

Description

@long-kr

Description

Hello, Is there a way for me to close connection with pool manually?

Why

I'm writing a test with wrapper and after finishing test. Jest yells at me about leaking memory because I didn't close connection with pool ( I use real time database to run test ). I wonder if there is a way I can close the connection after test manually?

Alternatives

I tried to create pool with Pool from "pg" then added to rate-limit and and pool.end() after the test but the test was failed because it didn't connect to database.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions