39 weeks discharge

Makenzie
Since I was 5 months pregnant I've been having discharge. I thought it was a yeast infection, I went to the doctor, was subscribed diflucan without being tested for a YI. Tried that, tried monistat, tried 100% cranberry juice. No luck. Went back to the doctor was given medicine for BV. Took all of that. No luck. Still wasn't tested for anything. By now it's been 3 months. I gave up asking my doctor for help because nothing seems to be working. I still have the discharge and I'm due in 5 days. What do I do?