From 83bd7a45cf9c9929ce076440d7f90af2ef681ac4 Mon Sep 17 00:00:00 2001 From: ThreeFive-O Date: Sun, 9 Sep 2018 01:19:37 +0200 Subject: [PATCH] Fix pipeline test where SmtpServer key was set wrong in pipeline object --- .../Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1 index 1078c6ce193..a1c68c52147 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Send-MailMessage.Tests.ps1 @@ -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