@@ -149,6 +149,21 @@ async fn it_should_allow_outbidding(rig: &TestRig) -> anyhow::Result<()> {
149
149
Ok ( ( ) )
150
150
}
151
151
152
+
153
+ async fn it_should_insert_txout_for_bids ( rig : & TestRig ) -> anyhow:: Result < ( ) > {
154
+ rig. wait_until_synced ( ) . await ?;
155
+ rig. wait_until_wallet_synced ( BOB ) . await ?;
156
+
157
+ let tx = rig. spaced . client
158
+ . wallet_list_transactions ( BOB , 10 , 0 ) . await ?. iter ( )
159
+ . filter ( |tx| tx. events . iter ( ) . any ( |event| event. kind == TxEventKind :: Bid ) )
160
+ . next ( )
161
+ . expect ( "a bid" ) . clone ( ) ;
162
+
163
+ assert ! ( tx. fee. is_some( ) , "must be able to calculate fees" ) ;
164
+ Ok ( ( ) )
165
+ }
166
+
152
167
/// Eve makes an invalid bid with a burn increment of 0 only refunding Bob's money
153
168
async fn it_should_only_accept_forced_zero_value_bid_increments_and_revoke (
154
169
rig : & TestRig ,
@@ -658,7 +673,7 @@ async fn it_should_replace_mempool_bids(rig: &TestRig) -> anyhow::Result<()> {
658
673
659
674
assert ! (
660
675
txs. iter( ) . all( |tx| tx. txid != eve_replacement_txid) ,
661
- "Eve's tx shouldn't be listed in Alice's wallet"
676
+ "Eve's tx shouldn't be listed in Alice's wallet"
662
677
) ;
663
678
Ok ( ( ) )
664
679
}
@@ -727,14 +742,15 @@ async fn run_auction_tests() -> anyhow::Result<()> {
727
742
load_wallet ( & rig, wallets_path. clone ( ) , BOB ) . await ?;
728
743
load_wallet ( & rig, wallets_path, EVE ) . await ?;
729
744
730
- it_should_open_a_space_for_auction ( & rig) . await ?;
731
- it_should_allow_outbidding ( & rig) . await ?;
732
- it_should_only_accept_forced_zero_value_bid_increments_and_revoke ( & rig) . await ?;
733
- it_should_allow_claim_on_or_after_claim_height ( & rig) . await ?;
734
- it_should_allow_batch_transfers_refreshing_expire_height ( & rig) . await ?;
735
- it_should_allow_applying_script_in_batch ( & rig) . await ?;
736
- it_should_replace_mempool_bids ( & rig) . await ?;
737
- it_should_maintain_locktime_when_fee_bumping ( & rig) . await ?;
745
+ it_should_open_a_space_for_auction ( & rig) . await . expect ( "should open auction" ) ;
746
+ it_should_allow_outbidding ( & rig) . await . expect ( "should allow outbidding" ) ;
747
+ it_should_insert_txout_for_bids ( & rig) . await . expect ( "should insert txout" ) ;
748
+ it_should_only_accept_forced_zero_value_bid_increments_and_revoke ( & rig) . await . expect ( "should only revoke a bid" ) ;
749
+ it_should_allow_claim_on_or_after_claim_height ( & rig) . await . expect ( "should allow claim on or above height" ) ;
750
+ it_should_allow_batch_transfers_refreshing_expire_height ( & rig) . await . expect ( "should allow batch transfers refresh expire height" ) ;
751
+ it_should_allow_applying_script_in_batch ( & rig) . await . expect ( "should allow batch applying script" ) ;
752
+ it_should_replace_mempool_bids ( & rig) . await . expect ( "should replace mempool bids" ) ;
753
+ it_should_maintain_locktime_when_fee_bumping ( & rig) . await . expect ( "should maintain locktime" ) ;
738
754
739
755
Ok ( ( ) )
740
756
}
0 commit comments