Skip to content

Commit 8e7e651

Browse files
committed
Fix fastapi tests
1 parent 232a073 commit 8e7e651

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ def test_instruments_with_old_fastapi_installed(
11131113
mock_dep.return_value = dependency_conflict
11141114
_load_instrumentors(mock_distro)
11151115
mock_distro.load_instrumentor.assert_not_called()
1116-
mock_logger.assert_has_calls(
1116+
mock_logger.debug.assert_has_calls(
11171117
[self._instrumentation_failed_to_load_call(dependency_conflict)]
11181118
)
11191119

@@ -1129,7 +1129,7 @@ def test_instruments_without_fastapi_installed(
11291129
mock_dep.return_value = dependency_conflict
11301130
_load_instrumentors(mock_distro)
11311131
mock_distro.load_instrumentor.assert_not_called()
1132-
mock_logger.assert_has_calls(
1132+
mock_logger.debug.assert_has_calls(
11331133
[self._instrumentation_failed_to_load_call(dependency_conflict)]
11341134
)
11351135

0 commit comments

Comments
 (0)