Fix tests

This commit is contained in:
nemunaire 2025-11-17 10:28:32 +07:00
commit d81ff1731c
3 changed files with 8 additions and 5 deletions

View file

@ -83,8 +83,8 @@ func TestCalculateHeaderScore(t *testing.T) {
Date: "Mon, 01 Jan 2024 12:00:00 +0000", Date: "Mon, 01 Jan 2024 12:00:00 +0000",
Parts: []MessagePart{{ContentType: "text/plain", Content: "test"}}, Parts: []MessagePart{{ContentType: "text/plain", Content: "test"}},
}, },
minScore: 40, minScore: 80,
maxScore: 80, maxScore: 90,
}, },
{ {
name: "Invalid Message-ID format", name: "Invalid Message-ID format",

View file

@ -106,6 +106,9 @@ Content-Type: text/html; charset=utf-8
} }
func TestGetAuthenticationResults(t *testing.T) { func TestGetAuthenticationResults(t *testing.T) {
// Force hostname
hostname = "example.com"
rawEmail := `From: sender@example.com rawEmail := `From: sender@example.com
To: recipient@example.com To: recipient@example.com
Subject: Test Email Subject: Test Email