@@ -56,7 +56,7 @@ func TestGetUserInformation(t *testing.T) {
56
56
responsedMap := map [string ]interface {}{}
57
57
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
58
58
if err != nil {
59
- t .Errorf ("get unexpect json: %w " , err )
59
+ t .Errorf ("get unexpect json: %v " , err )
60
60
}
61
61
62
62
t .Logf ("got response %v" , rr .Body .String ())
@@ -155,7 +155,7 @@ func TestGetUserFavorite(t *testing.T) {
155
155
responsedMap := map [string ]interface {}{}
156
156
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
157
157
if err != nil {
158
- t .Errorf ("get unexpect json: %w " , err )
158
+ t .Errorf ("get unexpect json: %v " , err )
159
159
}
160
160
161
161
t .Logf ("got response %v" , rr .Body .String ())
@@ -196,7 +196,7 @@ func TestGetUserPreference(t *testing.T) {
196
196
responsedMap := map [string ]interface {}{}
197
197
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
198
198
if err != nil {
199
- t .Errorf ("get unexpected json: %w " , err )
199
+ t .Errorf ("get unexpected json: %v " , err )
200
200
}
201
201
202
202
t .Logf ("got response %v" , rr .Body .String ())
@@ -238,7 +238,7 @@ func TestGetUserArticles(t *testing.T) {
238
238
responsedMap := map [string ]interface {}{}
239
239
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
240
240
if err != nil {
241
- t .Errorf ("get unexpect json: %w " , err )
241
+ t .Errorf ("get unexpect json: %v " , err )
242
242
}
243
243
t .Logf ("got response %v" , rr .Body .String ())
244
244
if responsedMap ["data" ] == nil {
@@ -275,7 +275,7 @@ func TestGetUserComments(t *testing.T) {
275
275
responsedMap := map [string ]interface {}{}
276
276
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
277
277
if err != nil {
278
- t .Errorf ("get unexpect json: %w " , err )
278
+ t .Errorf ("get unexpect json: %v " , err )
279
279
}
280
280
}
281
281
@@ -307,7 +307,7 @@ func TestGetUserDrafts(t *testing.T) {
307
307
responsedMap := map [string ]interface {}{}
308
308
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
309
309
if err != nil {
310
- t .Errorf ("get unexpect json: %w " , err )
310
+ t .Errorf ("get unexpect json: %v " , err )
311
311
}
312
312
313
313
t .Logf ("got response %v" , rr .Body .String ())
@@ -354,7 +354,7 @@ func TestUpdateUserDraft(t *testing.T) {
354
354
responsedMap := map [string ]interface {}{}
355
355
err = json .Unmarshal (rr .Body .Bytes (), & responsedMap )
356
356
if err != nil {
357
- t .Errorf ("get unexpect json: %w " , err )
357
+ t .Errorf ("get unexpect json: %v " , err )
358
358
}
359
359
360
360
t .Logf ("got response %v" , rr .Body .String ())
0 commit comments