Skip to content

Commit db96384

Browse files
GitHKAndrei Neagu
and
Andrei Neagu
authored
🐛 fixes broken test in servicelib + code deprecation (#6216)
Co-authored-by: Andrei Neagu <[email protected]>
1 parent 489f744 commit db96384

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

packages/service-library/tests/deferred_tasks/test_deferred_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async def test_workflow_with_outages_in_process_running_deferred_manager(
294294
*[manager.get_results() for manager in managers]
295295
)
296296
results: list[str] = list(itertools.chain(*gathered_results))
297-
assert len(results) < deferred_tasks_to_start
297+
assert len(results) <= deferred_tasks_to_start
298298

299299
# emulate issues with processing start & stop DeferredManager
300300
for _ in range(start_stop_cycles):
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"compose_spec": null, "container_names": [], "volume_states": {"INPUTS": {"status": "CONTENT_NO_SAVE_REQUIRED", "last_changed": "2023-06-28T07:18:11.157717+00:00"}, "SHARED_STORE": {"status": "CONTENT_NO_SAVE_REQUIRED", "last_changed": "2023-06-28T07:18:11.157741+00:00"}, "OUTPUTS": {"status": "CONTENT_NEEDS_TO_BE_SAVED", "last_changed": "2023-06-28T07:18:11.778735+00:00"}, "STATES": {"status": "CONTENT_NEEDS_TO_BE_SAVED", "last_changed": "2023-06-28T07:18:11.776789+00:00"}}}
1+
{"compose_spec": null, "container_names": [], "volume_states": {"INPUTS": {"status": "CONTENT_NO_SAVE_REQUIRED", "last_changed": "2023-06-28T07:18:11.157717+00:00"}, "SHARED_STORE": {"status": "CONTENT_NO_SAVE_REQUIRED", "last_changed": "2023-06-28T07:18:11.157741+00:00"}, "OUTPUTS": {"status": "CONTENT_NEEDS_TO_BE_SAVED", "last_changed": "2023-06-28T07:18:11.778735+00:00"}, "STATES": {"status": "CONTENT_NEEDS_TO_BE_SAVED", "last_changed": "2023-06-28T07:18:11.776789+00:00"}}, "original_to_container_names": {}}

services/dynamic-sidecar/tests/unit/test_models_shared_store.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# pylint: disable=unused-argument
33

44
import json
5-
import warnings
65
from copy import deepcopy
76
from pathlib import Path
87
from typing import Any
@@ -122,14 +121,6 @@ async def test_init_from_disk_with_legacy_data_format(project_tests_dir: Path):
122121

123122
# ensure object objects are compatible
124123
parsed_legacy_format = json.loads(disk_shared_store.json())
125-
warnings.warn(
126-
"check notes for deprecation at https://github.com/ITISFoundation/osparc-simcore/issues/4745"
127-
)
128-
# remove properties which have been added but did not exit
129-
# when the legacy format was created
130-
# NOTE this was already parsed so this check is a regression
131-
# to check compatibility with very old formats
132-
parsed_legacy_format.pop("original_to_container_names")
133124

134125
assert parsed_legacy_format == json.loads(
135126
(MOCKS_DIR / LEGACY_SHARED_STORE).read_text()

0 commit comments

Comments
 (0)