Skip to content

Commit

Permalink
splits long urls
Browse files Browse the repository at this point in the history
  • Loading branch information
BWMac committed Sep 27, 2024
1 parent 2dbb55d commit 63aeded
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/unit/synapseclient/core/unit_test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,8 +834,14 @@ async def test_download_md5_mismatch_local_file(self) -> None:
assert not mocked_remove.called

async def test_download_expired_url(self, syn: Synapse) -> None:
url = "http://www.ayy.lmao/filerino.txt?Expires=0&X-Amz-Date=20240509T180000Z&X-Amz-Expires=1000"
new_url = "http://www.ayy.lmao/new_url.txt?Expires=1715000000&X-Amz-Date=20240509T180000Z&X-Amz-Expires=1000"
url = (
"http://www.ayy.lmao/filerino.txt?Expires=0&X-Amz-Date=20240509T180000Z"
"&X-Amz-Expires=1000"
)
new_url = (
"http://www.ayy.lmao/new_url.txt?Expires=1715000000&X-Amz-Date=20240509T180000Z"
"&X-Amz-Expires=1000"
)
contents = "\n".join(str(i) for i in range(1000))
temp_destination = os.path.normpath(
os.path.expanduser("~/fake/path/filerino.txt.temp")
Expand Down

0 comments on commit 63aeded

Please sign in to comment.