@@ -1812,7 +1812,7 @@ mod test {
18121812 // Tests for lifetime extension logic
18131813 #[ mononoke:: fbinit_test]
18141814 async fn extend_bubble_ttl_with_longer_duration_test ( fb : FacebookInit ) -> Result < ( ) > {
1815- let initial = Duration :: from_secs ( 60 ) ; // 1 minute initial lifespan
1815+ let initial = Duration :: from_mins ( 1 ) ; // 1 minute initial lifespan
18161816 let grace = Duration :: from_secs ( 30 ) ;
18171817 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
18181818
@@ -1904,7 +1904,7 @@ mod test {
19041904
19051905 #[ mononoke:: fbinit_test]
19061906 async fn extend_bubble_ttl_without_duration_test ( fb : FacebookInit ) -> Result < ( ) > {
1907- let initial = Duration :: from_secs ( 60 ) ; // 1 minute initial lifespan
1907+ let initial = Duration :: from_mins ( 1 ) ; // 1 minute initial lifespan
19081908 let grace = Duration :: from_secs ( 30 ) ;
19091909 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
19101910
@@ -1923,7 +1923,7 @@ mod test {
19231923 ExtendBubbleTtlOutcome :: Extended ( timestamp) => {
19241924 // The new expiration should be approximately 1 minute from now (default lifetime)
19251925 let now = DateTime :: now ( ) ;
1926- let expected_expiry = now + to_chrono ( Duration :: from_secs ( 60 ) ) ;
1926+ let expected_expiry = now + to_chrono ( Duration :: from_mins ( 1 ) ) ;
19271927 let actual_expiry: DateTime = timestamp. into ( ) ;
19281928
19291929 // Allow for some time difference due to test execution time
@@ -1963,7 +1963,7 @@ mod test {
19631963
19641964 // Try to extend TTL of the expired bubble
19651965 let result = eph
1966- . extend_bubble_ttl ( & ctx, bubble_id, Some ( Duration :: from_secs ( 60 ) ) )
1966+ . extend_bubble_ttl ( & ctx, bubble_id, Some ( Duration :: from_mins ( 1 ) ) )
19671967 . await ;
19681968
19691969 // Should return an error since the bubble is expired
@@ -1982,14 +1982,14 @@ mod test {
19821982
19831983 #[ mononoke:: fbinit_test]
19841984 async fn extend_bubble_ttl_nonexistent_bubble_test ( fb : FacebookInit ) -> Result < ( ) > {
1985- let initial = Duration :: from_secs ( 60 ) ;
1985+ let initial = Duration :: from_mins ( 1 ) ;
19861986 let grace = Duration :: from_secs ( 30 ) ;
19871987 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
19881988
19891989 // Try to extend TTL of a non-existent bubble
19901990 let fake_bubble_id = BubbleId :: new ( std:: num:: NonZeroU64 :: new ( 99999 ) . unwrap ( ) ) ;
19911991 let result = eph
1992- . extend_bubble_ttl ( & ctx, fake_bubble_id, Some ( Duration :: from_secs ( 60 ) ) )
1992+ . extend_bubble_ttl ( & ctx, fake_bubble_id, Some ( Duration :: from_mins ( 1 ) ) )
19931993 . await ;
19941994
19951995 // Should return an error since the bubble doesn't exist
@@ -2008,7 +2008,7 @@ mod test {
20082008
20092009 #[ mononoke:: fbinit_test]
20102010 async fn extend_bubble_ttl_with_labels_test ( fb : FacebookInit ) -> Result < ( ) > {
2011- let initial = Duration :: from_secs ( 60 ) ;
2011+ let initial = Duration :: from_mins ( 1 ) ;
20122012 let grace = Duration :: from_secs ( 30 ) ;
20132013 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
20142014
@@ -2039,7 +2039,7 @@ mod test {
20392039
20402040 #[ mononoke:: fbinit_test]
20412041 async fn extend_bubble_ttl_multiple_times_test ( fb : FacebookInit ) -> Result < ( ) > {
2042- let initial = Duration :: from_secs ( 60 ) ;
2042+ let initial = Duration :: from_mins ( 1 ) ;
20432043 let grace = Duration :: from_secs ( 30 ) ;
20442044 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
20452045
@@ -2061,7 +2061,7 @@ mod test {
20612061
20622062 // Third extension with shorter duration (should not change)
20632063 let result3 = eph
2064- . extend_bubble_ttl ( & ctx, bubble_id, Some ( Duration :: from_secs ( 60 ) ) )
2064+ . extend_bubble_ttl ( & ctx, bubble_id, Some ( Duration :: from_mins ( 1 ) ) )
20652065 . await ?;
20662066 assert ! ( matches!( result3, ExtendBubbleTtlOutcome :: NotChanged ( _) ) ) ;
20672067
@@ -2080,7 +2080,7 @@ mod test {
20802080
20812081 #[ mononoke:: fbinit_test]
20822082 async fn extend_bubble_ttl_outcome_timestamps_test ( fb : FacebookInit ) -> Result < ( ) > {
2083- let initial = Duration :: from_secs ( 60 ) ;
2083+ let initial = Duration :: from_mins ( 1 ) ;
20842084 let grace = Duration :: from_secs ( 30 ) ;
20852085 let ( ctx, _, _, eph) = bootstrap ( fb, initial, grace, BubbleDeletionMode :: MarkAndDelete ) ?;
20862086
0 commit comments