summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-08-20 20:19:23 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-08-20 20:20:12 +0000
commit76bb3572dddf1e35697e071c94aa327382f0b990 (patch)
treef9532e0e6c430d5f58a94430f9b88eb2ac4ff323 /test
parent74f7f308f879b26a261db3b5c1d389cea898541c (diff)
downloadpleroma-76bb3572dddf1e35697e071c94aa327382f0b990.tar.gz
pleroma-76bb3572dddf1e35697e071c94aa327382f0b990.zip
test: rich media: aws signed url: increase TTL delta check to 2 seconds from 1
Diffstat (limited to 'test')
-rw-r--r--test/web/rich_media/aws_signed_url_test.exs3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/rich_media/aws_signed_url_test.exs b/test/web/rich_media/aws_signed_url_test.exs
index 122787bc2..a3a50cbb1 100644
--- a/test/web/rich_media/aws_signed_url_test.exs
+++ b/test/web/rich_media/aws_signed_url_test.exs
@@ -60,7 +60,8 @@ defmodule Pleroma.Web.RichMedia.TTL.AwsSignedUrlTest do
{: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
- 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
defp construct_s3_url(timestamp, valid_till) do