diff options
| author | horus_arch | 2015-03-20 23:16:27 +0100 |
|---|---|---|
| committer | horus_arch | 2015-03-20 23:16:27 +0100 |
| commit | 491462e033ae78a5b5c4f93ed8d5663e4da0a9e3 (patch) | |
| tree | cdc82ee4c600a86ba6bc7b92a589b129a01c7429 /domain_test.go | |
| parent | 17bea88eb3f6e2bc5f63641437a997cc8bd32881 (diff) | |
| download | freemail-491462e033ae78a5b5c4f93ed8d5663e4da0a9e3.tar.gz | |
Fix bug which prevented creating a new entry.
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")) { |
