Comment 12 for bug 1432914

Revision history for this message
Rohit Jaiswal (rohit-jaiswal-3) wrote :

Thanks for the pointer, Gordon. I uploaded a patch. I wasnt able to create a good test case for this. i wanted to mock the time.sleep (from the oslo.db.api.wrap_db_retry class) so as to assert the call_count of the mocked sleep function. But it seems like time is not an attribute of the wrap_db_retry class, so i cant do this. Any pointers would help. Thanks!