For a fasting blood glucose test, you can't eat or drink anything but water for 10-12 hours before your test. You may eat and drink before a random glucose test.