diff options
| author | Shulhan <m.shulhan@gmail.com> | 2019-10-03 23:38:15 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2019-10-03 23:44:13 +0700 |
| commit | 7aea317a35a9a90cb99a43bdccd044cf52836090 (patch) | |
| tree | e66a220d578bf11a213f49c0319257f9eca832db | |
| parent | 79b11ed45d8a2b245bf40e83752ff50e593136ca (diff) | |
| download | pakakeh.go-7aea317a35a9a90cb99a43bdccd044cf52836090.tar.xz | |
smtp: remove test for NewClient
This test takes too long due to connection timed out.
| -rw-r--r-- | lib/smtp/client_test.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/smtp/client_test.go b/lib/smtp/client_test.go index 22d54558..7093b7ce 100644 --- a/lib/smtp/client_test.go +++ b/lib/smtp/client_test.go @@ -12,27 +12,6 @@ import ( "github.com/shuLhan/share/lib/test" ) -func TestNewClient(t *testing.T) { - cases := []struct { - desc string - raddr string - expErr string - }{{ - desc: "With invalid IP", - raddr: "smtp://1234", - expErr: "dial tcp 0.0.4.210:25: connect: invalid argument", - }} - - for _, c := range cases { - t.Log(c.desc) - - _, err := NewClient("", c.raddr, true) - if err != nil { - test.Assert(t, "error", c.expErr, err.Error(), true) - } - } -} - func TestEhlo(t *testing.T) { cases := []struct { desc string |
