mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix second test in Send-MailMessage.Tests.ps1. (#7195)
This commit is contained in:
@@ -155,8 +155,8 @@ Describe "Basic Send-MailMessage tests" -Tags CI {
|
||||
$ItArgs['Name'] = "Can send mail message from user to self using pipeline " + $ItArgs['Name']
|
||||
|
||||
It @ItArgs {
|
||||
$body = "Greetings from me."
|
||||
$subject = "Test message"
|
||||
$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 | Send-MailMessage
|
||||
Test-Path -Path $mailBox | Should -BeTrue
|
||||
|
||||
Reference in New Issue
Block a user