-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dont open connections if its not used #2
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
When executing your tests you authenticate yourself towards the mail server with the given credentials (behat.yaml). In the case that those credentials are incorrect or the server refuses the connection for whatever reason the tests fail. To solve this behaviour, I would implement a Singleton and a Server class that handles the connection so it will fail when the appropriate test is executed. Also I should implement an exception handling so that the following tests will still be executable and behat won't crash. A solution would be to refactor the extension as a proper extension instead of a FeatureContext trait. Thank you for your report! Regards |
The first implementation of the connection optimization can be found on branch hotfix/2-connection. |
Now we connect to the server on every mail test. Thats even more connections. |
???? is this still active? |
I will have another look at this. I think there is some stuff that needs to be cleaned up. |
Currently the imap connection in established when the extension is loaded. That is not good.
Please conenct only if its used and then also check if a reconnect is needed.
The text was updated successfully, but these errors were encountered: