-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5313 Create Evergreen tests that do not run orchestration #2284
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
Conversation
This reverts commit e3d99bd.
@@ -206,6 +206,7 @@ async def _init_client(self): | |||
if os.environ.get("TEST_DATA_LAKE"): | |||
self.is_data_lake = True | |||
self.auth_enabled = True | |||
await self.client.close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a bug that was caught when running on pypy, it raised an error during teardown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we get an existing connection, close it and then establish a new connection?
Is this because the GC isn't calling close properly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GC is working as intended, it just raises a warning that close() wasn't called. Yeah, we need a new client with new options.
Patch build: https://spruce.mongodb.com/version/67fd3570f960180007a4d9f7/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC