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.