Merge branch 'chore/fix-flakey-aws-test' into 'develop'
test: rich media: aws signed url: increase TTL delta check to 2 seconds from 1 See merge request pleroma/pleroma!1587
This commit is contained in:
commit
73884441f3
|
@ -60,7 +60,8 @@ test "s3 signed url is parsed and correct ttl is set for rich media" do
|
||||||
{:ok, cache_ttl} = Cachex.ttl(:rich_media_cache, url)
|
{:ok, cache_ttl} = Cachex.ttl(:rich_media_cache, url)
|
||||||
|
|
||||||
# as there is delay in setting and pulling the data from cache we ignore 1 second
|
# as there is delay in setting and pulling the data from cache we ignore 1 second
|
||||||
assert_in_delta(valid_till * 1000, cache_ttl, 1000)
|
# make it 2 seconds for flakyness
|
||||||
|
assert_in_delta(valid_till * 1000, cache_ttl, 2000)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp construct_s3_url(timestamp, valid_till) do
|
defp construct_s3_url(timestamp, valid_till) do
|
||||||
|
|
Loading…
Reference in a new issue