What are the codes? Inspection station is only going to care about emissions and maybe safety.
Do not clear the codes. What the inspection station is looking for is a distance of *** (250?) miles since the last time codes were cleared. The assumption the inspection station makes from that is if you've managed to drive 250 miles without an emissions fault, then your emissions system is working properly. You may have been able to get a passing inspection several hundred miles ago.
Look into how NYS does inspections. In MA they will just give you a rejection sticker, tell you why you failed and you have 60 days to remedy it. If you go back to the station with your initial rejection paperwork within that timeframe you do not pay for the second inspection.