How long to leave pregnancy test in urine?

I just took one this morning and I only left it in my cup of urine for about 3-4 seconds but now I’m reading online that I should have left it in for 5-20 seconds. Is my test invalid now?