Test results

So my results for a pregnancy test came back negative 😞 I have a very irregular period so I don’t know when I’m ovulating

But the test did come back that I have a yeast infection and bacterial vaginosis

So when or if u ladies had this how did you preventing it from coming back after taking the medicine ?