Nothing to eat or drink 6 hours prior to your appointment.
Stop all medications that you are taking for your stomach problems (e.g. nitrates, calcium channel-blocking agents, Carafate, anticholinergic and pro motility agents) 48 hours before the test.