@@ -366,11 +366,11 @@ fn creates_short_lived_offer() {
366366 let alice_id = alice. node . get_our_node_id ( ) ;
367367 let bob = & nodes[ 1 ] ;
368368
369- let absolute_expiry = Some ( alice. duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 24 ) ) ;
369+ let absolute_expiry = alice. node . duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 24 ) ;
370370 let offer = alice. node
371- . create_offer_builder ( absolute_expiry) . unwrap ( )
371+ . create_offer_builder ( Some ( absolute_expiry) ) . unwrap ( )
372372 . build ( ) . unwrap ( ) ;
373- assert_eq ! ( offer. absolute_expiry( ) , absolute_expiry) ;
373+ assert_eq ! ( offer. absolute_expiry( ) , Some ( absolute_expiry) ) ;
374374 assert ! ( !offer. paths( ) . is_empty( ) ) ;
375375 for path in offer. paths ( ) {
376376 let introduction_node_id = resolve_introduction_node ( bob, & path) ;
@@ -392,11 +392,11 @@ fn creates_long_lived_offer() {
392392 let alice = & nodes[ 0 ] ;
393393 let alice_id = alice. node . get_our_node_id ( ) ;
394394
395- let absolute_expiry = Some ( alice. duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 25 ) ) ;
395+ let absolute_expiry = alice. node . duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 25 ) ;
396396 let offer = alice. node
397- . create_offer_builder ( absolute_expiry) . unwrap ( )
397+ . create_offer_builder ( Some ( absolute_expiry) ) . unwrap ( )
398398 . build ( ) . unwrap ( ) ;
399- assert_eq ! ( offer. absolute_expiry( ) , absolute_expiry) ;
399+ assert_eq ! ( offer. absolute_expiry( ) , Some ( absolute_expiry) ) ;
400400 assert ! ( !offer. paths( ) . is_empty( ) ) ;
401401 for path in offer. paths ( ) {
402402 assert_eq ! ( path. introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
@@ -426,7 +426,7 @@ fn creates_short_lived_refund() {
426426 let bob = & nodes[ 1 ] ;
427427 let bob_id = bob. node . get_our_node_id ( ) ;
428428
429- let absolute_expiry = bob. duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 24 ) ;
429+ let absolute_expiry = bob. node . duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 24 ) ;
430430 let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
431431 let refund = bob. node
432432 . create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
@@ -454,7 +454,7 @@ fn creates_long_lived_refund() {
454454 let bob = & nodes[ 1 ] ;
455455 let bob_id = bob. node . get_our_node_id ( ) ;
456456
457- let absolute_expiry = bob. duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 25 ) ;
457+ let absolute_expiry = bob. node . duration_since_epoch ( ) + Duration :: from_secs ( 60 * 60 * 25 ) ;
458458 let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
459459 let refund = bob. node
460460 . create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
0 commit comments