Skip to content

mssql connections not being cleared #15

Open

Description

@jkato51

The below code is resulting in error when running multiple times. "Global connection already exists."

Feature('Test1');
BeforeSuite( async({ I }) => {
await I.connect('conn1', 'mssql:///user:password!@localhost/database');
I.say('Database connection succeeded');
});

Scenario('Test', async ({ I }) => {
//...
)};

AfterSuite( async( { I }) => {
await I.removeConnection('conn1');
});

Activity

  1. thiagodp commented on Aug 29, 2023

    @thiagodp
    Owner

    Hello, @jkato51 !
    This problem is happening with the code from tediousjs/node-mssql.
    Maybe some recent update broke the compatibility (e.g. in the connection pool), or there is a bug in their code.
    This requires a thorough code analysis, but unfortunately I can't do it now.
    Whether you can help investigating the problem, I'd appreciate a lot. Thank you.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions