What do you mamas do when you got sugar

I had a 1 hr sugar test last week and this week got to go back for 3 hr because my first one was bad. like how do you keep up with what u can eat? with sugar