mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 16:47:56 +08:00
testing with more than 30days
This commit is contained in:
@@ -30,6 +30,11 @@ func TestTTLReadWrite(t *testing.T) {
|
|||||||
t.Errorf("5d ttl:%v", ttl)
|
t.Errorf("5d ttl:%v", ttl)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ttl, _ = ReadTTL("50d")
|
||||||
|
if ttl.Minutes() != 50*24*60 {
|
||||||
|
t.Errorf("50d ttl:%v", ttl)
|
||||||
|
}
|
||||||
|
|
||||||
ttl, _ = ReadTTL("5w")
|
ttl, _ = ReadTTL("5w")
|
||||||
if ttl.Minutes() != 5*7*24*60 {
|
if ttl.Minutes() != 5*7*24*60 {
|
||||||
t.Errorf("5w ttl:%v", ttl)
|
t.Errorf("5w ttl:%v", ttl)
|
||||||
|
Reference in New Issue
Block a user