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

Refactor tests to use variable server instead of instance for SMO server objects (part 1) #9501

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

andreasjordan
Copy link
Contributor

This PR only changes tests and no code of the module itself.

Some tests use code like $instance2 = Connect-DbaInstance -SqlInstance $script:instance2. Using $instance2 and $script:instance2. I think this should be avoided and we should use the variable $server like in the main code.

@potatoqualitee potatoqualitee merged commit 5224351 into development Oct 14, 2024
13 checks passed
@potatoqualitee potatoqualitee deleted the tests_do_not_use_instance_var branch October 14, 2024 08:09
@potatoqualitee
Copy link
Member

Thank you very much 🙇🏼

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