It is difficult to understand what happened here. If the head of your penis was covered during intercourse, you didn't have a risk for HIV.
If the head of your penis was uncovered during vaginal penetration, you can test at 28 days after the event to be sure of your HIV status.