Fix testsuite for Received line test

This commit is contained in:
Bernhard Froehlich 2018-12-14 13:42:05 +00:00
parent 21709bf51f
commit 6323615a6b
No known key found for this signature in database
GPG key ID: 4DD88C3F9F3B8333

View file

@ -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