Skip to content

Commit 90689d9

Browse files
Get-TestConfig - Cleanup code (#9727)
1 parent db75617 commit 90689d9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

private/testing/Get-TestConfig.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ function Get-TestConfig {
55
$config = [ordered]@{}
66

77
if (Test-Path $LocalConfigPath) {
8-
Write-Host "Tests will use local constants file: tests\constants.local.ps1." -ForegroundColor Cyan
98
. $LocalConfigPath
10-
# Note: Local constants are sourced but not explicitly added to $config
119
} elseif ($env:CODESPACES -or ($env:TERM_PROGRAM -eq 'vscode' -and $env:REMOTE_CONTAINERS)) {
1210
$null = Set-DbatoolsInsecureConnection
1311
$config['Instance1'] = "dbatools1"
@@ -61,13 +59,6 @@ function Get-TestConfig {
6159
}
6260
}
6361

64-
# derive the command name from the CALLING script's filename
65-
$config['CommandName'] = ($MyInvocation.MyCommand.Name | Split-Path -Leaf).Replace(".Tests.ps1", "")
66-
67-
if (-not $config['CommandName']) {
68-
$config['CommandName'] = "Unknown"
69-
}
70-
7162
$config['CommonParameters'] = [System.Management.Automation.PSCmdlet]::CommonParameters
7263

7364
if (-not $config['Temp']) {

0 commit comments

Comments
 (0)