A glucose tolerance test is used to detect diabetes or hypoglycemia. This test has a timed blood collection, and you should prepare to be at the lab for at least three hours. The two main tests are used to measure the presence of blood sugar problems.