Browse Source

testing with more than 30days

pull/1444/head
Chris Lu 4 years ago
parent
commit
dbb10e0f0b
  1. 5
      weed/storage/needle/volume_ttl_test.go

5
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)

Loading…
Cancel
Save