diff options
| author | Horus3 | 2015-05-17 03:32:03 +0200 |
|---|---|---|
| committer | Horus3 | 2015-05-17 03:32:03 +0200 |
| commit | cc207536d1f8618385d9807906818180cd596777 (patch) | |
| tree | 0093a6b12994c3d75b2be0abb6a43dae1eb9bf98 /server_test.go | |
| parent | feb97c32649dfaa7c98283423125283a53d5dd09 (diff) | |
| download | freemail-cc207536d1f8618385d9807906818180cd596777.tar.gz | |
Improve tests. Fix (major) typos. Include Piwik and it tracks the language.
Diffstat (limited to 'server_test.go')
| -rw-r--r-- | server_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server_test.go b/server_test.go index ba84bc7..8ad3151 100644 --- a/server_test.go +++ b/server_test.go @@ -1,11 +1,16 @@ package main import ( + "os" "testing" ) func TestCreateNewEntry(t *testing.T) { - err := CreateNewEntry("foobar@localhost", "password") + if testing.Short() || !*testExternal { + t.Skip("Skipping test to avoid external network.") + } + domain := os.Getenv("FREEMAIL_SMTP_MAILER_MX") + err := CreateNewEntry("foobar@"+domain, "password") if err != nil { t.Fatal(err) } |
