How long to hold urine for pregnancy test

Jo
How long do I need to hold it?.. I planned on testing in the morning but u can't seem to hold it long as I could a couple weeks ago. I woke up and I really need to go but I don't want to test if i havnt held it long enough