Drive cycle & emissions readiness monitors on 1996 Toyota Corolla

Failed inspection. Code was P0125. Replaced thermostat but not coolant temperature sensor. Mechanic the cleared the check engine light but it came back on in less than 10 minutes driving. Later discovered first o2 sensor was disconnected. After reconnecting, I removed negative battery cable to clear check engine light. How many miles do I have to drive and/or key cycles before I can get it inspected again? I only have 45 days or so left on the rejection sticker.

Asked by for the 1996 Toyota Corolla
try 30-40 miles you should be ready for inspection if no check engine light
Will do. Thank you.