Remove DB records for expired offers option.

This commit is contained in:
tecnovert
2023-07-24 21:55:48 +02:00
parent d4f6286980
commit 67624a252b
8 changed files with 61 additions and 19 deletions

View File

@@ -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()