@@ -35,11 +35,11 @@ func TestChangesService_ListReviewers(t *testing.T) {
3535 }
3636
3737 if len (* data ) != 1 {
38- t .Error ()
38+ t .Error ("Length of data !=1 " )
3939 }
4040
4141 if (* data )[0 ].AccountID != 1 {
42- t .Error ()
42+ t .Error ("AccountID != 1" )
4343 }
4444}
4545
@@ -61,11 +61,11 @@ func TestChangesService_SuggestReviewers(t *testing.T) {
6161 }
6262
6363 if len (* data ) != 1 {
64- t .Error ()
64+ t .Error ("Length of data !=1 " )
6565 }
6666
6767 if (* data )[0 ].Account .AccountID != 1 {
68- t .Error ()
68+ t .Error ("AccountID != 1" )
6969 }
7070}
7171
@@ -86,7 +86,7 @@ func TestChangesService_GetReviewer(t *testing.T) {
8686 t .Error (err )
8787 }
8888 if data .AccountID != 1 {
89- t .Error ()
89+ t .Error ("AccountID != 1" )
9090 }
9191}
9292
@@ -97,7 +97,7 @@ func TestChangesService_AddReviewer(t *testing.T) {
9797 t .Errorf ("%s != %s" , r .URL .Path , expected )
9898 }
9999 if r .Method != "POST" {
100- t .Error ()
100+ t .Error ("Method != POST" )
101101 }
102102
103103 fmt .Fprint (w , `{"confirm": true}` )
@@ -110,7 +110,7 @@ func TestChangesService_AddReviewer(t *testing.T) {
110110 t .Error (err )
111111 }
112112 if ! data .Confirm {
113- t .Error ()
113+ t .Error ("Confirm != true" )
114114 }
115115}
116116
@@ -121,7 +121,7 @@ func TestChangesService_DeleteReviewer(t *testing.T) {
121121 t .Errorf ("%s != %s" , r .URL .Path , expected )
122122 }
123123 if r .Method != "DELETE" {
124- t .Error ()
124+ t .Error ("Method != DELETE" )
125125 }
126126 w .WriteHeader (http .StatusOK )
127127 }))
@@ -150,10 +150,10 @@ func TestChangesService_ListVotes(t *testing.T) {
150150 t .Error (err )
151151 }
152152 if votes ["Code-Review" ] != 2 {
153- t .Error ()
153+ t .Error ("Code-Review != 2" )
154154 }
155155 if votes ["Verified" ] != 1 {
156- t .Error ()
156+ t .Error ("Verified != 1" )
157157 }
158158}
159159
@@ -165,7 +165,7 @@ func TestChangesService_DeleteVote(t *testing.T) {
165165 }
166166
167167 if r .Method != "DELETE" {
168- t .Error ()
168+ t .Error ("Method != DELETE" )
169169 }
170170 w .WriteHeader (http .StatusOK )
171171 }))
0 commit comments