If you took
azithromycin in one dose, that would take up to around 7 days to fully work. If you took doxycycline
for 7 days, it will be cured by the time you are finished those meds.
I'm guessing, maybe, that you were being treated for chlamydia and had sex too soon. If that's the case, your partner should be told to test. If your partner was being treated and you had sex too soon, you should test.