Generally, no special preparation is needed for an STD/STI test. However, it’s best to avoid urinating for at least one hour before a urine test for STIs like chlamydia and gonorrhea. Follow any specific instructions provided by your healthcare provider.