DEV: Fix flaky `signed_url_for_path` spec
AWS gem uses internally `Time.now` to generate the presigned URLs, so often two consecutive calls with the same params would give different results.
This commit is contained in:
parent
6fb4c333b0
commit
4e5dd4105c
|
@ -386,6 +386,7 @@ describe UploadsController do
|
|||
end
|
||||
|
||||
it "redirects to the signed_url_for_path" do
|
||||
freeze_time
|
||||
get upload.short_path
|
||||
|
||||
expect(response).to redirect_to(Discourse.store.signed_url_for_path(Discourse.store.get_path_for_upload(upload)))
|
||||
|
|
Loading…
Reference in New Issue