mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
test_upload: Remove an erroneous nondeterministically correct check.
See the comment added, but basically this test would fail if the two URLs were computed in different seconds.
This commit is contained in:
parent
088f7ee5d6
commit
859b48c491
@ -1646,8 +1646,10 @@ class S3Test(ZulipTestCase):
|
||||
data = result.json()
|
||||
url_only_url = data['url']
|
||||
self.assertEqual(b"zulip!", urllib.request.urlopen(url_only_url).read().strip())
|
||||
# Verify the URLs are different.
|
||||
self.assertEqual(url_only_url, redirect_url)
|
||||
|
||||
# Note: Depending on whether the calls happened in the same
|
||||
# second (resulting in the same timestamp+signature),
|
||||
# url_only_url may or may not equal redirect_url.
|
||||
|
||||
self.subscribe(self.example_user("hamlet"), "Denmark")
|
||||
body = "First message ...[zulip.txt](http://localhost:9991" + uri + ")"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user