must fast for 12 hours before the test and then eat a meal with at least 75 grams of carbohydrates. After the meal, don't eat anything else before having the test. Plan to rest during the 2-hour waiting period, because exercise can cause blood sugar levels to rise. You may not have to fast if you're pregnant.