Skip to content

Commit 6d41439

Browse files
committed
ensure redis database is properly cleaned
1 parent 3a28066 commit 6d41439

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

services/web/server/tests/unit/with_dbs/06/test_projects_02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def client(
6767
postgres_db,
6868
mocked_director_subsystem,
6969
mock_orphaned_services,
70+
redis_client, # this ensure redis is properly cleaned
7071
):
7172

7273
# config app
@@ -897,7 +898,6 @@ async def test_open_shared_project_2_users_locked(
897898
aiohttp_client,
898899
mocker,
899900
disable_gc_manual_guest_users,
900-
redis_client,
901901
):
902902
# Use-case: user 1 opens a shared project, user 2 tries to open it as well
903903
mock_project_state_updated_handler = mocker.Mock()

services/web/server/tests/unit/with_dbs/09/test_projects_01.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# pylint:disable=redefined-outer-name
44
# pylint:disable=too-many-arguments
55
import asyncio
6-
import unittest.mock as mock
76
import uuid as uuidlib
87
from copy import deepcopy
98
from math import ceil
@@ -12,7 +11,6 @@
1211

1312
import aiohttp
1413
import pytest
15-
import socketio
1614
from _helpers import ExpectedResponse, standard_role_response
1715
from aiohttp import web
1816
from aiohttp.test_utils import TestClient
@@ -68,6 +66,7 @@ def client(
6866
postgres_db,
6967
mocked_director_subsystem,
7068
mock_orphaned_services,
69+
redis_client,
7170
):
7271

7372
# config app

0 commit comments

Comments
 (0)