It took my truck about a week before I could get the codes to qualify after a reset (it depends on the amount of driving you do and not the actual time) - same issue - I was pulling a code for a faulty battery and the reset disqualified me for passing the emissions test.

-- John