Skip to content

Commit 2db9a36

Browse files
fix import
1 parent 47e184e commit 2db9a36

File tree

1 file changed

+1
-6
lines changed
  • services/api-server/tests/unit/api_functions/celery

1 file changed

+1
-6
lines changed

services/api-server/tests/unit/api_functions/celery/conftest.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pytest_simcore.helpers.monkeypatch_envs import delenvs_from_dict, setenvs_from_dict
2121
from pytest_simcore.helpers.typing_env import EnvVarsDict
2222
from servicelib.fastapi.celery.app_server import FastAPIAppServer
23-
from servicelib.tracing import TracingConfig
2423
from settings_library.redis import RedisSettings
2524
from simcore_service_api_server.clients import celery_task_manager
2625
from simcore_service_api_server.core.application import create_app
@@ -114,15 +113,11 @@ async def with_api_server_celery_worker(
114113
add_worker_tasks: bool,
115114
monkeypatch: pytest.MonkeyPatch,
116115
) -> AsyncIterator[TestWorkController]:
117-
tracing_config = TracingConfig.create(
118-
tracing_settings=None, # disable tracing in tests
119-
service_name="api-server-worker-test",
120-
)
121116
# Signals must be explicitily connected
122117
monkeypatch.setenv("API_SERVER_WORKER_MODE", "true")
123118
app_settings = ApplicationSettings.create_from_envs()
124119

125-
app_server = FastAPIAppServer(app=create_app(app_settings, tracing_config))
120+
app_server = FastAPIAppServer(app=create_app(app_settings))
126121

127122
_init_wrapper = _worker_init_wrapper(celery_app, lambda: app_server)
128123
_shutdown_wrapper = _worker_shutdown_wrapper(celery_app)

0 commit comments

Comments
 (0)