Skip to content

Commit 972425c

Browse files
author
Andrei Neagu
committed
fixed broken test
1 parent 01670d3 commit 972425c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/storage/tests/unit/test_simcore_s3_dsm.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,5 +295,10 @@ async def test_create_s3_export_abort_upload_upon_error(
295295
):
296296
await _assert_meta_data_entries_count(sqlalchemy_async_engine, count=0)
297297
with pytest.raises(RuntimeError, match="failing as expected"):
298-
await simcore_s3_dsm.create_s3_export(user_id, [], progress_bar=None)
298+
async with ProgressBarData(
299+
num_steps=1, description="data export"
300+
) as progress_bar:
301+
await simcore_s3_dsm.create_s3_export(
302+
user_id, [], progress_bar=progress_bar
303+
)
299304
await _assert_meta_data_entries_count(sqlalchemy_async_engine, count=0)

0 commit comments

Comments
 (0)