Fix testsuite for Received line test
This commit is contained in:
parent
21709bf51f
commit
6323615a6b
1 changed files with 1 additions and 1 deletions
|
@ -943,7 +943,7 @@ func TestEnvelopeReceived(t *testing.T) {
|
|||
Hostname: "foobar.example.net",
|
||||
Handler: func(peer smtpd.Peer, env smtpd.Envelope) error {
|
||||
env.AddReceivedLine(peer)
|
||||
if !bytes.HasPrefix(env.Data, []byte("Received: from localhost [127.0.0.1] by foobar.example.net with ESMTP;")) {
|
||||
if !bytes.HasPrefix(env.Data, []byte("Received: from localhost ([127.0.0.1]) by foobar.example.net with ESMTP;")) {
|
||||
t.Fatal("Wrong received line.")
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue