Skip to content

Connection does not close in 0.5.13 #1862

@phungleson

Description

@phungleson

I am running tests and at beginning of test I have line like this.

let pool = PgPoolOptions::new()
        .max_connections(5)
        .connect(&url)
        .await
        .unwrap()
// clean up old database

And at the end of each test I have a line like this

pool.close().await;

First test runs well, but second tests onwards throw error that there is still connection when it tries to clean up old database

Everything runs well with 0.5.10.

This might be related to the issue: #1776.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions