Sugar test :/

Deb
I'm 27weeks pregnant and May 6th I'm going to get my sugar test done, for some reason I'm a bit scared I may fail it. Idk why I passed my first one, but I feel like I've been eating to much sweets and I haven't really controlled my intake in juice or eating healthy, I haven't gained much but I'm just a bit nervous. I will be on a strict no eating candy or sweet stuff from now til my sugar test and so on, do you think il be okay!?