Failed 1 hour test - Told to eat candy bars b4 3 hour

mi

So I am very upset.......I failed my one your glucose test with a 145. Now I’ve gotta take the three hour......I was told by my doctor two days before the test I need to eat 1 full size candy bar or two pieces of toast with jelly each day leading up to the test.......was anyone else told this??? I just find it weird and would love to know the reason behind it. I am gonna call my doctors office and ask as well........