aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-08-31 17:59:29 -0700
committerChris Lu <chris.lu@gmail.com>2020-08-31 17:59:29 -0700
commitdbb10e0f0b7e9d9341ca170ce2bd50836bbca4f8 (patch)
tree4c7cf1da2817ac1a7b8e9793314143fcf252e956
parentdd176cdb8bf5a25dcde3bd58a0fa6a792d7d5a1b (diff)
downloadseaweedfs-dbb10e0f0b7e9d9341ca170ce2bd50836bbca4f8.tar.xz
seaweedfs-dbb10e0f0b7e9d9341ca170ce2bd50836bbca4f8.zip
testing with more than 30days
-rw-r--r--weed/storage/needle/volume_ttl_test.go5
1 files changed, 5 insertions, 0 deletions
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)