Skip to content

Commit 8ba5ce7

Browse files
fix failing tests
1 parent 82d6d17 commit 8ba5ce7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

services/web/server/tests/integration/01/test_garbage_collection.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,8 @@ async def test_t11_owner_and_all_users_in_group_marked_as_guests(
11721172
await assert_projects_count(aiopg_engine, 1)
11731173
await assert_user_is_owner_of_project(aiopg_engine, u1, project)
11741174

1175-
await asyncio.sleep(WAIT_FOR_COMPLETE_GC_CYCLE)
1175+
# await asyncio.sleep(WAIT_FOR_COMPLETE_GC_CYCLE)
1176+
await gc_core.collect_garbage(app=client.app)
11761177

1177-
await assert_users_count(aiopg_engine, 0)
1178+
await assert_users_count(aiopg_engine, 0) # <-- MD: this is where the test fails
11781179
await assert_projects_count(aiopg_engine, 0)

services/web/server/tests/unit/with_dbs/03/trash/test_trash_rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ async def test_trash_folder_with_subfolder_and_project_and_empty_bin(
11621162

11631163
# waits for deletion
11641164
async for attempt in AsyncRetrying(
1165-
stop=stop_after_attempt(3), wait=wait_fixed(1), reraise=True
1165+
stop=stop_after_attempt(10), wait=wait_fixed(1), reraise=True
11661166
):
11671167
with attempt:
11681168
# GET trashed parent folder

0 commit comments

Comments
 (0)