diff options
| author | Shulhan <m.shulhan@gmail.com> | 2019-09-05 22:43:55 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2019-09-05 22:43:55 +0700 |
| commit | ffd23b2b1fe37b7699c133471b785212741743f0 (patch) | |
| tree | 65d546be724ca993e6e7e1055de743e826c7d8fd | |
| parent | a8efbba8519f447da2fb24e0a9168d2b11f1e151 (diff) | |
| download | pakakeh.go-ffd23b2b1fe37b7699c133471b785212741743f0.tar.xz | |
all: fix test for Go 1.13
| -rw-r--r-- | lib/email/dkim/key_test.go | 2 | ||||
| -rw-r--r-- | lib/ini/ini_example_test.go | 6 | ||||
| -rw-r--r-- | lib/smtp/client_test.go | 2 | ||||
| -rw-r--r-- | lib/websocket/client_test.go | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/lib/email/dkim/key_test.go b/lib/email/dkim/key_test.go index 1dc4af0f..f2bd494d 100644 --- a/lib/email/dkim/key_test.go +++ b/lib/email/dkim/key_test.go @@ -110,7 +110,7 @@ func TestKeyLookupDNSTXT(t *testing.T) { expErr: "dkim: LookupKey: no TXT record on 'www.amazon.com'", }, { dname: "www.google.com", - expErr: "dkim: LookupKey: empty answer on 'www.google.com'", + expErr: "dkim: LookupKey: no TXT record on 'www.google.com'", }} for _, c := range cases { diff --git a/lib/ini/ini_example_test.go b/lib/ini/ini_example_test.go index a51e1b8f..af18dbee 100644 --- a/lib/ini/ini_example_test.go +++ b/lib/ini/ini_example_test.go @@ -165,16 +165,16 @@ func ExampleMarshal() { // string = d // int = 2 // int = 3 - // bool = true - // bool = false // uint = 4 // uint = 5 + // bool = true + // bool = false // // [section "mapstring"] // k = v // // [section "mapint"] - // k = 6 + // keyint = 6 // // [section "pointer"] // ptrstring = b diff --git a/lib/smtp/client_test.go b/lib/smtp/client_test.go index dea53f48..22d54558 100644 --- a/lib/smtp/client_test.go +++ b/lib/smtp/client_test.go @@ -267,7 +267,7 @@ func TestLookup(t *testing.T) { }, { desc: "With MX", address: "kilabit.info", - exp: net.ParseIP("64.233.176.14"), + exp: net.ParseIP("103.200.4.162"), }} for _, c := range cases { diff --git a/lib/websocket/client_test.go b/lib/websocket/client_test.go index af2cbdb5..f1cc9458 100644 --- a/lib/websocket/client_test.go +++ b/lib/websocket/client_test.go @@ -27,7 +27,7 @@ func TestConnect(t *testing.T) { expErr string }{{ desc: "With empty endpoint", - expErr: "websocket: Connect: parse : empty url", + expErr: `websocket: Connect: parse "": empty url`, }, { desc: "With custom header", endpoint: _testEndpointAuth, |
