Some tests, such as pressure testing, will require you to refrain from eating or drinking caffeine for 2 hours before your visit. Some tests, such as an echocardiogram, do not require dietary restrictions. During your scheduled test, you will be given detailed instructions on how to prepare for your particular exam.