Glucose test

Did you eat or drink before your test? I was at the doctors Monday and she said I needed to get the glucose test done and I said I can do it here right? She goes yes, did you already eat today? I told her yes but I planned on going Wednesday for it.

So I assumed I’m not supposed to eat or drink. But I looked online and says it’s ok. What did you do?