Skip to content

Commit

Permalink
S3 test fix (#364)
Browse files Browse the repository at this point in the history
- Fix S3 test that were broken. Long term, we should have test create and manage it's own resource
  • Loading branch information
TingDaoK authored Jun 9, 2022
1 parent 4a454a9 commit 212a1d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _on_progress_cancel_after_first_chunk(self, progress):

def test_multipart_get_object_cancel(self):
# a 5 GB file
request = self._get_object_request("/crt-canary-obj-single-part-9223372036854775807")
request = self._get_object_request("/get_object_test_5120MB.txt")
s3_client = s3_client_new(False, self.region, 5 * MB)
with tempfile.NamedTemporaryFile(mode="w", delete=False) as file:
file.close()
Expand Down Expand Up @@ -373,7 +373,7 @@ def test_multipart_get_object_cancel(self):

def test_get_object_quick_cancel(self):
# a 5 GB file
request = self._get_object_request("/crt-canary-obj-single-part-9223372036854775807")
request = self._get_object_request("/get_object_test_5120MB.txt")
s3_client = s3_client_new(False, self.region, 5 * MB)
with tempfile.NamedTemporaryFile(mode="w", delete=False) as file:
file.close()
Expand Down

0 comments on commit 212a1d1

Please sign in to comment.