Need to get inspection tomorrow...?

I don’t mind inspection when something is obviously wrong with the car and it needs to be fixed. But for stupid things like an ecu “pending code” when your cel isn’t even on. I had to wait two weeks for a “pending code” that never came on and in that timeframe I got pulled over twice, for two inspection tickets. Both totalled $160 in fines. what BS.