浏览代码

test: rich media: aws signed url: increase TTL delta check to 2 seconds from 1

tags/v1.1.4
Ariadne Conill 4 年前
父节点
当前提交
76bb3572dd
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      test/web/rich_media/aws_signed_url_test.exs

+ 2
- 1
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


正在加载...
取消
保存