Skip to content

Conversation

@KaitCrawford
Copy link
Collaborator

No description provided.

Copy link
Member

@jerith jerith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 with an optional change mentioned inline. Feel free to merge with or without making the change.

tests/test.py Outdated
[sample] = http_requests_total_for_view(
response.text, 'prometheus-django-metrics')
assert_that(sample.value, Equals(1.0))
response.close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this, given that we already read the whole request body (with response.text above) and all it does is release the connection back to the pool for reuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants