Green discharge

Do I got tested and had a yeast infection. My discharge was green/ yellow with a smell to it. Imy doctor gave me metronidazole and fluconazole. The pedir and itching went away but the discharge was still kinda there. After I finished the medication the discharge came back green and it’s starting to itch and burn again. Has this happened to anyone else??? She sent me more medicine for yeast infection