how can car pass emission test. O2 sensor and cataly not ready. drove it 1600 mi on 2009 Pontiac Vibe

I recently had my alternator replaced, if I change the battery, how much longer will I have to drive the car to pass test?

Asked by for the 2009 Pontiac Vibe
1 answer
have those systems ck'd as they should have reset by now