Skip to content

Commit

Permalink
Update submodules & Fix S3 Tests (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 authored Nov 2, 2022
1 parent 5f9aec6 commit c88e3f1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crt/aws-c-sdkutils
4 changes: 4 additions & 0 deletions test/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class S3ClientTest(NativeResourceTest):
def setUp(self):
self.region = "us-west-2"
self.timeout = 10 # seconds
super().setUp()

def test_sanity(self):
s3_client = s3_client_new(False, self.region)
Expand Down Expand Up @@ -149,6 +150,7 @@ def setUp(self):
self.put_body_stream = None

self.files = FileCreator()
super().setUp()

def tearDown(self):
self.files.remove_all()
Expand Down Expand Up @@ -240,6 +242,8 @@ def test_put_object_multiple_times(self):
on_headers=self._on_request_headers,
on_body=self._on_request_body)
finished_futures.append(s3_request.finished_future)
# request keeps connection alive. delete pointer so connection can shut down
del s3_request
try:
for future in finished_futures:
future.result(self.timeout)
Expand Down

0 comments on commit c88e3f1

Please sign in to comment.