Skip to content

Commit

Permalink
Minor regex tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteLoser authored Feb 23, 2018
1 parent edc35ed commit f30cb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SSHSessions.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Describe SshSessions {
}#>
$Result = (New-SshSession -ComputerName $ComputerName -Verbose `
-Credential $Global:PesterSSHSessionsCredentials -ErrorAction Stop) 4>&1
$Result.Message | Should -Match "\[$([Regex]::Escape($ComputerName))\] (?:Successfully connected.|You are already connected.)"
$Result.Message | Should -Match "\[$([Regex]::Escape($ComputerName))\]\s*(?:Successfully connected|You are already connected)"
}

It "Invoke-SshCommand produces expected simple remote 'echo' test output." {
Expand Down

0 comments on commit f30cb8a

Please sign in to comment.