diff options
Diffstat (limited to 'domain_test.go')
| -rw-r--r-- | domain_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/domain_test.go b/domain_test.go index 20d927a..1560d55 100644 --- a/domain_test.go +++ b/domain_test.go @@ -43,7 +43,8 @@ func TestValidateDomain(t *testing.T) { if d.ValidateDomain("wikipedia.de") { t.Fatal("'" + d.Name + "' and wikipedia.de do not share IPs.") } - if !d.ValidateDomain("google.com") { + d.Name = "localhost" + if !d.ValidateDomain("localhost") { t.Fatal("'" + d.Name + "' is a valid domain.") } } @@ -52,9 +53,9 @@ func TestValidateDomainMX(t *testing.T) { if testing.Short() || !*testExternal { t.Skip("Skipping test to avoid external network.") } - d := VirtualDomain{Name: "heise.de"} + d := VirtualDomain{Name: "google.com"} if d.ValidateDomainMX(os.Getenv("FREEMAIL_SMTP_MAILER_MX")) { - t.Fatal("heise.de MX record doesn't point to this server.") + t.Fatal("google.cm MX record doesn't point to this server.") } d.Name = "iamfabulous.de" if !d.ValidateDomainMX(os.Getenv("FREEMAIL_SMTP_MAILER_MX")) { |
