Skip to content

Commit

Permalink
pin version in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc-pace committed Sep 25, 2023
1 parent c1131a3 commit 866fbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"coverage",
"pytest",
"opentelemetry-sdk",
"opentelemetry-instrumentation-requests",
"opentelemetry-instrumentation-requests>=0.39b0",
],
"instruments": PACKAGE_INFO["_instruments"],
},
Expand Down
6 changes: 3 additions & 3 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test_no_match(self, container, web_session, memory_exporter):
spans = memory_exporter.get_finished_spans()
assert len(spans) == 1

assert spans[0].name == "HTTP GET"
assert spans[0].name == "GET /missing"


class TestNoEntrypointFired:
Expand Down Expand Up @@ -121,7 +121,7 @@ def test_method_not_found(self, container, web_session, memory_exporter):

span = spans[0]

assert spans[0].name == "HTTP GET"
assert spans[0].name == "GET /missing"

assert not span.status.is_ok
assert span.status.status_code == StatusCode.ERROR
Expand All @@ -139,7 +139,7 @@ def test_method_not_allowed(self, container, web_session, memory_exporter):

span = spans[0]

assert spans[0].name == "HTTP POST"
assert spans[0].name == "POST /resource"

assert not span.status.is_ok
assert span.status.status_code == StatusCode.ERROR
Expand Down

0 comments on commit 866fbb1

Please sign in to comment.