mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix pipeline test where SmtpServer key was set wrong in pipeline object (#7745)
Fix SmtpServer key (was $SmtpServer) in hashtable object. Removed double quotes for all keys in hashtable object.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user