Corrected expected HTTP error codes in follow/unfollow tests.

This commit is contained in:
tastytea 2019-04-19 01:39:30 +02:00
parent 7f46be68d1
commit 9b1ae88b9b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ SCENARIO ("/api/v1/accounts/:id/follow can be called successfully",
REQUIRE((ret.error_code == 0
|| ret.error_code == 111));
REQUIRE((ret.http_error_code == 200
|| ret.http_error_code == 500));
|| ret.http_error_code == 404));
REQUIRE((relationship.following()
|| relationship.error() != ""));

View File

@ -61,7 +61,7 @@ SCENARIO ("/api/v1/accounts/:id/unfollow can be called successfully",
REQUIRE((ret.error_code == 0
|| ret.error_code == 111));
REQUIRE((ret.http_error_code == 200
|| ret.http_error_code == 500));
|| ret.http_error_code == 404));
REQUIRE((!relationship.following()
|| relationship.error() != ""));