Question

I have a really bad uti. I called my dr and they said azo is fine as long as i don't take more than the recommended dose. I called cause i think i may be pregnant. I was gonna test tmw cause then af will officially be late. I was wondering if i should wait till the azo is out of my system or will it not affect the test. Thanks in advance