Skip to content

Commit 7c9621e

Browse files
author
Andrei Bratu
committed
rename util tests
1 parent 97aecb1 commit 7c9621e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _flow_over_flow(messages: list[dict]) -> str:
6565
return _random_string, _call_llm, _agent_call, _flow_over_flow
6666

6767

68-
@pytest.mark.skip(reason="Runs single or as part of the suite, fails on a full run. Likely test config issue.")
68+
@pytest.mark.flaky(retries=3, delay=5)
6969
def test_decorators_without_flow(
7070
opentelemetry_hl_test_configuration: tuple[Tracer, InMemorySpanExporter],
7171
):
@@ -89,7 +89,7 @@ def test_decorators_without_flow(
8989
# WHEN exporting the spans
9090
# Wait for the prompt span to be exported; It was waiting
9191
# on the OpenAI call span to finish first
92-
time.sleep(1)
92+
time.sleep(3)
9393
spans = exporter.get_finished_spans()
9494

9595
# THEN 3 spans arrive at the exporter
@@ -111,6 +111,7 @@ def test_decorators_without_flow(
111111
)["prompt"]
112112

113113

114+
@pytest.mark.flaky(retries=3, delay=5)
114115
def test_decorators_with_flow_decorator(
115116
opentelemetry_hl_test_configuration: tuple[Tracer, InMemorySpanExporter],
116117
):
@@ -133,6 +134,8 @@ def test_decorators_with_flow_decorator(
133134
]
134135
)
135136

137+
time.sleep(3)
138+
136139
# THEN 4 spans arrive at the exporter
137140
spans = exporter.get_finished_spans()
138141
assert len(spans) == 4

0 commit comments

Comments
 (0)