@@ -456,6 +456,7 @@ mod tests {
456
456
assert_eq ! ( offer. description( ) , "foo" ) ;
457
457
assert_eq ! ( offer. features( ) , None ) ;
458
458
assert_eq ! ( offer. absolute_expiry( ) , None ) ;
459
+ #[ cfg( feature = "std" ) ]
459
460
assert ! ( !offer. is_expired( ) ) ;
460
461
assert_eq ! ( offer. paths( ) , None ) ;
461
462
assert_eq ! ( offer. issuer( ) , None ) ;
@@ -576,6 +577,7 @@ mod tests {
576
577
let offer = OfferBuilder :: new ( "foo" . into ( ) , pubkey ( ) )
577
578
. absolute_expiry ( future_expiry)
578
579
. build ( ) ;
580
+ #[ cfg( feature = "std" ) ]
579
581
assert ! ( !offer. is_expired( ) ) ;
580
582
assert_eq ! ( offer. absolute_expiry( ) , Some ( future_expiry) ) ;
581
583
assert_eq ! ( offer. as_tlv_stream( ) . absolute_expiry, Some ( future_expiry. as_secs( ) . into( ) ) ) ;
@@ -584,6 +586,7 @@ mod tests {
584
586
. absolute_expiry ( future_expiry)
585
587
. absolute_expiry ( past_expiry)
586
588
. build ( ) ;
589
+ #[ cfg( feature = "std" ) ]
587
590
assert ! ( offer. is_expired( ) ) ;
588
591
assert_eq ! ( offer. absolute_expiry( ) , Some ( past_expiry) ) ;
589
592
assert_eq ! ( offer. as_tlv_stream( ) . absolute_expiry, Some ( past_expiry. as_secs( ) . into( ) ) ) ;
0 commit comments