Remove hardcoded rate limit value

Name is chosen to match the equivalent setting in the configuration
of the rate limits for edits.

Fixes #4427.
This commit is contained in:
gobinathal 2024-01-08 22:29:34 +05:30 committed by Tom Hughes
parent 9d47ad5fe5
commit 2d8feb6d79
4 changed files with 5 additions and 3 deletions

View file

@ -158,7 +158,7 @@ module Api
def test_create_comment_experienced_user_rate_limit
changeset = create(:changeset, :closed)
user = create(:user)
create_list(:changeset_comment, 200, :author_id => user.id, :created_at => Time.now.utc - 1.day)
create_list(:changeset_comment, Settings.comments_to_max_changeset_comments, :author_id => user.id, :created_at => Time.now.utc - 1.day)
auth_header = bearer_authorization_header user