gestational diabetes test confusion ???

Erin
I took my first test a few days ago and it was a two hour test . Everyone else has said they have had to do a one hour test . Is there a difference ? If I fail would I have to take a longer test as well? Just curious if anyone else has taken a two hour instead of a one hour .