Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mssql connections not being cleared #15

Open
jkato51 opened this issue Aug 27, 2023 · 1 comment
Open

mssql connections not being cleared #15

jkato51 opened this issue Aug 27, 2023 · 1 comment

Comments

@jkato51
Copy link

jkato51 commented Aug 27, 2023

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');
});

@thiagodp
Copy link
Owner

thiagodp commented Aug 29, 2023

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants