@@ -55,7 +55,7 @@ func TestGCRoots(t *testing.T) {
5555 addContent ("ns2" , dgst (9 ), nil ),
5656 addIngest ("ns1" , "ingest-1" , "" , nil ), // will be seen as expired
5757 addIngest ("ns1" , "ingest-2" , "" , timeIn (0 )), // expired
58- addIngest ("ns1" , "ingest-3" , "" , timeIn (3600 * time .Second )),
58+ addIngest ("ns1" , "ingest-3" , "" , timeIn (time .Hour )),
5959 addIngest ("ns2" , "ingest-4" , "" , nil ),
6060 addIngest ("ns2" , "ingest-5" , dgst (8 ), nil ),
6161 addIngest ("ns2" , "ingest-6" , "" , nil ), // added to expired lease
@@ -73,7 +73,7 @@ func TestGCRoots(t *testing.T) {
7373 addLeaseSnapshot ("ns2" , "l2" , "overlay" , "sn6" ),
7474 addLeaseContent ("ns2" , "l1" , dgst (4 )),
7575 addLeaseContent ("ns2" , "l2" , dgst (5 )),
76- addLease ("ns2" , "l3" , labelmap (string (labelGCExpire ), time .Now ().Add (3600 * time .Second ).Format (time .RFC3339 ))),
76+ addLease ("ns2" , "l3" , labelmap (string (labelGCExpire ), time .Now ().Add (time .Hour ).Format (time .RFC3339 ))),
7777 addLeaseContent ("ns2" , "l3" , dgst (6 )),
7878 addLeaseSnapshot ("ns2" , "l3" , "overlay" , "sn7" ),
7979 addLeaseIngest ("ns2" , "l3" , "ingest-4" ),
@@ -156,7 +156,7 @@ func TestGCRemove(t *testing.T) {
156156 addSnapshot ("ns1" , "overlay" , "sn3" , "" , labelmap (string (labelGCRoot ), "always" )),
157157 addSnapshot ("ns1" , "overlay" , "sn4" , "" , nil ),
158158 addSnapshot ("ns2" , "overlay" , "sn1" , "" , nil ),
159- addLease ("ns1" , "l1" , labelmap (string (labelGCExpire ), time .Now ().Add (3600 * time .Second ).Format (time .RFC3339 ))),
159+ addLease ("ns1" , "l1" , labelmap (string (labelGCExpire ), time .Now ().Add (time .Hour ).Format (time .RFC3339 ))),
160160 addLease ("ns2" , "l2" , labelmap (string (labelGCExpire ), time .Now ().Format (time .RFC3339 ))),
161161 }
162162
0 commit comments