Skip to content

Commit 6eeea5e

Browse files
committed
Try with a sleep of 1 second
Fixes #653
1 parent 0e5853b commit 6eeea5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/opentelemetry-docker-tests/tests/celery/test_celery_functional.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import celery
1717
from celery.exceptions import Retry
1818
from pytest import mark
19+
from time import sleep
1920

2021
import opentelemetry.instrumentation.celery
2122
from opentelemetry import trace as trace_api
@@ -33,13 +34,13 @@ class MyException(Exception):
3334
pass
3435

3536

36-
@mark.skip(reason="inconsistent test results")
3737
def test_instrumentation_info(celery_app, memory_exporter):
3838
@celery_app.task
3939
def fn_task():
4040
return 42
4141

4242
result = fn_task.apply_async()
43+
sleep(1)
4344
assert result.get(timeout=ASYNC_GET_TIMEOUT) == 42
4445

4546
spans = memory_exporter.get_finished_spans()

0 commit comments

Comments
 (0)