Minor Yeast infection and TTC

I got of the pill July 18. I bled July 20-22. I believe I ovulated August 3 but never got a positive OPK but my CM indicated I was. I should be starting my period this week but I got a very minor yeast infection yesterday. I took a pregnancy test today and it looks negative to me. 
I've read that a yeast infection could be a sign of pregnancy or just that you're about to start your period. 
Does anyone know how soon after a yeast infection I can take a pregnancy test?