The only test that requires at least eight hours of fasting is a lipid panel (cholesterol, triglycerides). Most other tests, including HgbA1c (diabetes test) do not require fasting. When fasting for a lipid panel you may have water, black unsweetened coffee or tea and any medications that you normally take.