Update test which assumes all previews have the name preview in the version. (#7625)

This commit is contained in:
Travis Plunk
2018-08-23 17:19:45 -07:00
committed by GitHub
parent 75c70a2a7c
commit 6c454c6ea8
@@ -847,7 +847,8 @@ namespace PowershellTestConfigNamespace
It "Enable-PSSession Cmdlet creates a default PSSession configuration untied to a specific PowerShell version." {
$dotPos = $PSVersionTable.PSVersion.ToString().IndexOf(".")
$endpointName = "PowerShell." + $PSVersionTable.PSVersion.ToString().Substring(0, $dotPos)
if ($PSVersionTable.GitCommitId.Contains("preview"))
# any pre-release (a version with a dash) is a preview release
if ($PSVersionTable.GitCommitId.Contains("-"))
{
$endpointName += "-preview"
}