HIV/AIDS

So the other night I had sex for the first time and the guy I'm with says hes had sex with a bunch of girls and we didnt use a condom (idk what I was thinking) but when should I get tested? And what happens if I have it?