@@ -366,11 +366,11 @@ fn creates_short_lived_offer() {
366
366
let alice_id = alice. node . get_our_node_id ( ) ;
367
367
let bob = & nodes[ 1 ] ;
368
368
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 ) ;
370
370
let offer = alice. node
371
- . create_offer_builder ( absolute_expiry) . unwrap ( )
371
+ . create_offer_builder ( Some ( absolute_expiry) ) . unwrap ( )
372
372
. build ( ) . unwrap ( ) ;
373
- assert_eq ! ( offer. absolute_expiry( ) , absolute_expiry) ;
373
+ assert_eq ! ( offer. absolute_expiry( ) , Some ( absolute_expiry) ) ;
374
374
assert ! ( !offer. paths( ) . is_empty( ) ) ;
375
375
for path in offer. paths ( ) {
376
376
let introduction_node_id = resolve_introduction_node ( bob, & path) ;
@@ -392,11 +392,11 @@ fn creates_long_lived_offer() {
392
392
let alice = & nodes[ 0 ] ;
393
393
let alice_id = alice. node . get_our_node_id ( ) ;
394
394
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 ) ;
396
396
let offer = alice. node
397
- . create_offer_builder ( absolute_expiry) . unwrap ( )
397
+ . create_offer_builder ( Some ( absolute_expiry) ) . unwrap ( )
398
398
. build ( ) . unwrap ( ) ;
399
- assert_eq ! ( offer. absolute_expiry( ) , absolute_expiry) ;
399
+ assert_eq ! ( offer. absolute_expiry( ) , Some ( absolute_expiry) ) ;
400
400
assert ! ( !offer. paths( ) . is_empty( ) ) ;
401
401
for path in offer. paths ( ) {
402
402
assert_eq ! ( path. introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
@@ -426,7 +426,7 @@ fn creates_short_lived_refund() {
426
426
let bob = & nodes[ 1 ] ;
427
427
let bob_id = bob. node . get_our_node_id ( ) ;
428
428
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 ) ;
430
430
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
431
431
let refund = bob. node
432
432
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
@@ -454,7 +454,7 @@ fn creates_long_lived_refund() {
454
454
let bob = & nodes[ 1 ] ;
455
455
let bob_id = bob. node . get_our_node_id ( ) ;
456
456
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 ) ;
458
458
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
459
459
let refund = bob. node
460
460
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
0 commit comments