Skip to content

Conversation

sleepyStick
Copy link
Contributor

No description provided.

@sleepyStick sleepyStick marked this pull request as ready for review February 6, 2025 00:40
@sleepyStick sleepyStick requested a review from NoahStapp February 6, 2025 00:40
@client_context.require_failCommand_fail_point
def setUpClass(cls):
super().setUp(cls)
def setUp(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep setUpClass and have it handle the knobs and listener configuration. Those don't do network I/O and are constant across every testcase. The client configuration should be moved to setUp as you've done here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, makes sense!

self.listener.reset()

def tearDown(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here as with setUp.

@sleepyStick sleepyStick requested a review from NoahStapp February 6, 2025 17:52
@sleepyStick sleepyStick merged commit 25c9b90 into mongodb:master Feb 6, 2025
37 of 40 checks passed
@sleepyStick sleepyStick deleted the PYTHON-5099 branch February 6, 2025 18:24
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

Successfully merging this pull request may close these issues.

2 participants