mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update ServerRemoteHost Version to be same as PSVersion (#15809)
This commit is contained in:
@@ -345,5 +345,16 @@ Describe "Remoting loopback tests" -Tags @('CI', 'RequireAdminOnWindows') {
|
||||
$result = Invoke-Command -Session $openSession -ScriptBlock { $using:number }
|
||||
$result | Should -Be 100
|
||||
}
|
||||
|
||||
It '$Host.Version should be PSVersion' {
|
||||
$session = New-RemoteSession -ConfigurationName $endPoint
|
||||
try {
|
||||
$result = Invoke-Command -Session $session -ScriptBlock { $Host.Version }
|
||||
$result | Should -Be $PSVersionTable.PSVersion
|
||||
}
|
||||
finally {
|
||||
$session | Remove-PSSession -ErrorAction Ignore
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user