You may be asked to avoid eating or drinking for a few hours before the test, especially if you are having a cardiac MRI with contrast. Follow your doctor’s instructions.