Procházet zdrojové kódy

Adjust error code returned from UserAvatar test

Bruce Marriner před 9 roky
rodič
revize
de235a04f0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      restapi_test.go

+ 1 - 1
restapi_test.go

@@ -31,7 +31,7 @@ func TestUserAvatar(t *testing.T) {
 
 	a, err := dg.UserAvatar("@me")
 	if err != nil {
-		if err.Error() == `HTTP 404 NOT FOUND, {"message": ""}` {
+		if err.Error() == `HTTP 404 NOT FOUND, {"message": "404: Not Found"}` {
 			t.Skip("Skipped, @me doesn't have an Avatar")
 		}
 		t.Errorf(err.Error())