Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update tests to use new error package format.

  • Loading branch information...
commit 51525ef35c9e0bbdeb328cd5f951c45039c8236b 1 parent 19185da
Paddy Foran paddyforan authored

Showing 2 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  authrequest_test.go
  2. +2 2 yadis_test.go
2  authrequest_test.go
@@ -49,7 +49,7 @@ func TestGetRedirectURL(t *testing.T) {
49 49 for _, url := range Identifiers {
50 50 _, err := GetRedirectURL(url, "http://example.com", "/loginCheck")
51 51 if err != nil {
52   - t.Errorf("GetRedirectURL() returned the error: %s", err.String())
  52 + t.Errorf("GetRedirectURL() returned the error: %s", err.Error())
53 53 }
54 54 }
55 55 }
4 yadis_test.go
@@ -39,7 +39,7 @@ func TestSearchHTMLMetaXRDS(t *testing.T) {
39 39 for _, l := range searchHTMLMetaXRDSTests {
40 40 content, err := searchHTMLMetaXRDS(bytes.NewBuffer(l.in))
41 41 if err != nil {
42   - t.Errorf("searchHTMLMetaXRDS error: %s", err.String())
  42 + t.Errorf("searchHTMLMetaXRDS error: %s", err.Error())
43 43 }
44 44 if !bytes.Equal([]byte(content), []byte(l.out)) {
45 45 t.Errorf("searchHTMLMetaXRDS(%s) = %s want %s.", l.in, content, l.out)
@@ -66,7 +66,7 @@ func TestYadis(t *testing.T) {
66 66 for _, yt := range YadisTests {
67 67 var reader, err = YadisVerbose(yt.url, logger)
68 68 if err != nil {
69   - t.Errorf("Yadis(%s) returned a error: %s", yt.url, err.String())
  69 + t.Errorf("Yadis(%s) returned a error: %s", yt.url, err.Error())
70 70 continue
71 71 }
72 72 if reader == nil {

0 comments on commit 51525ef

Please sign in to comment.
Something went wrong with that request. Please try again.