From dbb10e0f0b7e9d9341ca170ce2bd50836bbca4f8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 31 Aug 2020 17:59:29 -0700 Subject: [PATCH] testing with more than 30days --- weed/storage/needle/volume_ttl_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/weed/storage/needle/volume_ttl_test.go b/weed/storage/needle/volume_ttl_test.go index 0afebebf5..f75453593 100644 --- a/weed/storage/needle/volume_ttl_test.go +++ b/weed/storage/needle/volume_ttl_test.go @@ -30,6 +30,11 @@ func TestTTLReadWrite(t *testing.T) { t.Errorf("5d ttl:%v", ttl) } + ttl, _ = ReadTTL("50d") + if ttl.Minutes() != 50*24*60 { + t.Errorf("50d ttl:%v", ttl) + } + ttl, _ = ReadTTL("5w") if ttl.Minutes() != 5*7*24*60 { t.Errorf("5w ttl:%v", ttl)