@@ -44,9 +44,13 @@ async fn it_should_open_a_space_for_auction(rig: &TestRig) -> anyhow::Result<()>
44
44
assert ! ( tx_res. error. is_none( ) , "expect no errors for simple open" ) ;
45
45
}
46
46
assert_eq ! ( response. result. len( ) , 2 , "must be 2 transactions" ) ;
47
+ let alices_spaces = rig. spaced . client . wallet_list_spaces ( ALICE ) . await ?;
48
+ assert ! ( alices_spaces. pending. first( ) . is_some_and( |s| s. to_string( ) == TEST_SPACE ) , "must be a pending space" ) ;
47
49
48
50
rig. mine_blocks ( 1 , None ) . await ?;
49
51
rig. wait_until_synced ( ) . await ?;
52
+ let alices_spaces = rig. spaced . client . wallet_list_spaces ( ALICE ) . await ?;
53
+ assert ! ( alices_spaces. pending. is_empty( ) , "must have no pending spaces" ) ;
50
54
51
55
let fullspaceout = rig. spaced . client . get_space ( TEST_SPACE ) . await ?;
52
56
let fullspaceout = fullspaceout. expect ( "a fullspace out" ) ;
@@ -96,8 +100,11 @@ async fn it_should_allow_outbidding(rig: &TestRig) -> anyhow::Result<()> {
96
100
. expect ( "send request" ) ;
97
101
98
102
println ! ( "{}" , serde_json:: to_string_pretty( & result) . unwrap( ) ) ;
99
- rig. mine_blocks ( 1 , None ) . await ?;
100
103
104
+ let bob_spaces_updated = rig. spaced . client . wallet_list_spaces ( BOB ) . await ?;
105
+ assert ! ( bob_spaces_updated. pending. first( ) . is_some_and( |s| s. to_string( ) == TEST_SPACE ) , "must be a pending space" ) ;
106
+
107
+ rig. mine_blocks ( 1 , None ) . await ?;
101
108
rig. wait_until_synced ( ) . await ?;
102
109
rig. wait_until_wallet_synced ( BOB ) . await ?;
103
110
rig. wait_until_wallet_synced ( ALICE ) . await ?;
@@ -125,6 +132,7 @@ async fn it_should_allow_outbidding(rig: &TestRig) -> anyhow::Result<()> {
125
132
alices_balance. balance + Amount :: from_sat( TEST_INITIAL_BID + 662 ) ,
126
133
"alice must be refunded this exact amount"
127
134
) ;
135
+ assert ! ( bob_spaces_updated. pending. is_empty( ) , "must have no pending spaces" ) ;
128
136
129
137
let fullspaceout = rig. spaced . client . get_space ( TEST_SPACE ) . await ?;
130
138
let fullspaceout = fullspaceout. expect ( "a fullspace out" ) ;
0 commit comments