Browse Source

ref: close the debug-files streaming response (#39373)

<!-- Describe your PR here. -->
anthony sottile 2 years ago
parent
commit
b7b290dc49
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/sentry/api/endpoints/test_debug_files.py

+ 2 - 0
tests/sentry/api/endpoints/test_debug_files.py

@@ -7,6 +7,7 @@ from django.urls import reverse
 
 from sentry.models import File, ProjectDebugFile, Release, ReleaseFile
 from sentry.testutils import APITestCase
+from sentry.testutils.helpers.response import close_streaming_response
 
 # This is obviously a freely generated UUID and not the checksum UUID.
 # This is permissible if users want to send different UUIDs
@@ -216,6 +217,7 @@ class DebugFilesUploadTest(APITestCase):
         self.login_as(user=self.user)
         response = self.client.get(url + "?id=" + download_id)
         assert response.get("Content-Type") == "application/octet-stream"
+        close_streaming_response(response)
 
         # Download as a user without sufficient role
         self.organization.update_option("sentry:debug_files_role", "owner")