Skip to content

Commit e82aedc

Browse files
authored
Merge pull request #597 from Path-of-Modifiers/596-fix-an-issue-where-ratelimit-tests-fail-on-assertion
#596 Added user_rate_limiter to the test_pre_register_user_rate_limit…
2 parents 6f48899 + 17c31c5 commit e82aedc

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.11"
2727

2828
- run: docker compose build
2929
- run: docker compose down -v --remove-orphans
3030
- run: |
31-
docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.ci.yml up -d
31+
docker compose up -d
3232
docker compose -f docker-compose.test.yml up -d
3333
3434
- name: Run tests

src/backend_api/app/tests/test_simulating_env/api/api_test_rate_limit_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def perform_time_interval_requests_with_api_function(
4949
rate, interval_seconds = self._get_rate_and_interval(
5050
rate_limits_per_interval
5151
)
52-
if interval_seconds > 60: # Skips test because it takes too long
52+
if interval_seconds > 40: # Skips test because it takes too long
5353
continue
5454
skip_time = abs(rate - interval_seconds) // rate
5555

src/docker-compose.ci.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)