Before a glucose test, it is important to avoid eating or drinking anything other than water for at least 8-10 hours. You should also avoid smoking and strenuous exercise, as they can affect your test results.