gestational diabetes test


so I totally forgot to call my doctors office and my appointment is first thing in the morning. But I'm having that sugar test done and I wasn't sure if I'm allowed to eat and drink before? online it says to fast but than some say you don't have to prepare before hand. What did you guys do and how did the test go for you?