-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{Batch} Fix race condition in test #28508
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Batch |
@bebound Could you please help review this PR? |
src/azure-cli/azure/cli/command_modules/batch/tests/latest/test_batch_mgmt_commands.py
Outdated
Show resolved
Hide resolved
This issue should be addressed as soon as possible as it is causing more CI failures: https://dev.azure.com/azclitools/public/_build?definitionId=32&_a=summary&branchFilter=487%2C487%2C487%2C487 |
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.
See comments
def __init__(self, method_name, *arg, **kwargs): | ||
super().__init__(method_name, *arg, random_config_dir=True, **kwargs) |
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.
No need to explicitly specify method_name
. It is part of *arg
.
def __init__(self, method_name, *arg, **kwargs): | |
super().__init__(method_name, *arg, random_config_dir=True, **kwargs) | |
def __init__(self, *arg, **kwargs): | |
super().__init__(*arg, random_config_dir=True, **kwargs) |
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.
Well, as this pattern is frequently used elsewhere:
Lines 23 to 27 in 21b54b5
def __init__(self, method_name): | |
super(WebAppConnectionScenarioTest, self).__init__( | |
method_name, | |
recording_processors=[CredentialReplacer(), ConfigCredentialReplacer()] | |
) |
You can keep it for now.
Description
Fix #28500
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.