Skip to content

Commit 09a2ef4

Browse files
test: add assertion to ensure list always has at least the server spans
1 parent 3f36b70 commit 09a2ef4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

instrumentation/opentelemetry-instrumentation-asgi/tests/test_asgi_middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,7 @@ def test_exclude_internal_spans(self):
589589
app.exclude_send_span = exclude_send_span
590590
self.send_default_request()
591591
span_list = self.memory_exporter.get_finished_spans()
592+
assert span_list
592593
for span in span_list:
593594
for excluded_span in excluded_spans:
594595
self.assertNotEqual(span.name, excluded_span)

0 commit comments

Comments
 (0)