Skip to content

Commit 4d2e344

Browse files
committed
Update code
1 parent 95b1391 commit 4d2e344

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

.github/workflows/setup-e2e-environment/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
steps:
88
- name: Wait for database to be ready
99
run: |
10-
timeout 1m bash -c '
10+
timeout 5m bash -c '
1111
until docker exec ${{ job.services.db.id }} pg_isready -U nest_user_e2e -d nest_db_e2e; do
1212
echo "Waiting for database..."
1313
sleep 5
@@ -48,7 +48,7 @@ runs:
4848

4949
- name: Waiting for the backend to be ready
5050
run: |
51-
timeout 1m bash -c '
51+
timeout 5m bash -c '
5252
until wget --spider http://localhost:9000/a; do
5353
echo "Waiting for backend..."
5454
sleep 5

backend/apps/api/decorators/cache.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ def cache_response(
3636
def decorator(view_func):
3737
@wraps(view_func)
3838
def _wrapper(request, *args, **kwargs):
39-
if settings.IS_E2E_ENVIRONMENT:
40-
return view_func(request, *args, **kwargs)
4139
if request.method not in ("GET", "HEAD"):
4240
return view_func(request, *args, **kwargs)
4341

backend/apps/api/rest/v0/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
],
5858
"throttle": [],
5959
}
60-
6160
elif settings.IS_E2E_ENVIRONMENT:
6261
api_settings_customization = {
6362
"auth": None,
@@ -69,7 +68,6 @@
6968
],
7069
"throttle": [],
7170
}
72-
7371
elif settings.IS_STAGING_ENVIRONMENT:
7472
api_settings_customization = {
7573
"servers": [

0 commit comments

Comments
 (0)