Skip to content

Commit 1340ac7

Browse files
adriangbxrmx
andcommitted
Update test_fastapi_instrumentation.py
Co-authored-by: Riccardo Magliocchetti <[email protected]>
1 parent 437891b commit 1340ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1129,7 +1129,7 @@ def test_mulitple_way_instrumentation(self):
11291129
self._instrumentor.instrument_app(self._app)
11301130
count = 0
11311131
app = self._app.middleware_stack
1132-
while True:
1132+
while app is not None:
11331133
if isinstance(app, OpenTelemetryMiddleware):
11341134
count += 1
11351135
if app is None:

0 commit comments

Comments
 (0)