mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Remove DB records for expired offers option.
This commit is contained in:
@@ -832,6 +832,11 @@ class Test(BaseTest):
|
||||
assert (compare_bid_states(offerer_states, self.states_offerer[0]) is True)
|
||||
assert (compare_bid_states(bidder_states, self.states_bidder[0]) is True)
|
||||
|
||||
# Test remove_expired_data
|
||||
remove_expired_data(swap_clients[0], -swap_clients[0]._expire_db_records_after * 2)
|
||||
offers = swap_clients[0].listOffers(filters={'offer_id': offer_id})
|
||||
assert (len(offers) == 0)
|
||||
|
||||
def test_011_smsgaddresses(self):
|
||||
logging.info('---------- Test address management and private offers')
|
||||
swap_clients = self.swap_clients
|
||||
@@ -1547,9 +1552,6 @@ class Test(BaseTest):
|
||||
logging.info('Restoring XMR mining')
|
||||
pause_event.set()
|
||||
|
||||
def test_98_remove_expired_data(self):
|
||||
remove_expired_data(self.swap_clients[0])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user