Skip to content

Commit

Permalink
Fix pipeline test where SmtpServer key was set wrong in pipeline obje…
Browse files Browse the repository at this point in the history
…ct (PowerShell#7745)

Fix SmtpServer key (was $SmtpServer) in hashtable object.
Removed double quotes for all keys in hashtable object.
  • Loading branch information
ThreeFive-O authored and iSazonov committed Sep 11, 2018
1 parent 4e98f24 commit 32cdbe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Describe "Basic Send-MailMessage tests" -Tags CI {
It @ItArgs {
$body = "Greetings from me again."
$subject = "Second test message"
$object = [PSCustomObject]@{"To" = $address; "From" = $address; "Subject" = $subject; "Body" = $body; $SmtpServer = '127.0.0.1'}
$object = [PSCustomObject]@{To = $address; From = $address; Subject = $subject; Body = $body; SmtpServer = '127.0.0.1'}
$object | Send-MailMessage
Test-Path -Path $mailBox | Should -BeTrue
$mail = read-mail $mailBox
Expand Down

0 comments on commit 32cdbe6

Please sign in to comment.