Is fungal infection caused by antibiotics or by intercourse? A fungal infection is most likely an Candida Albicans fungus but it's not a std. Also it does not increase risk for catching hiv. Your flora on your penile skin is out of balance and it can take time to get rid of the fungus.
See doctor if it doesn't go away and forget about hiv
The only adult risks for HIV are:
1) Having unprotected penetrative anal or vaginal sex, OR
2) Sharing IV drug equipment with other IV drug users.
There is no other event that will cause you to be infected with HIV, including the event you mention. You had ZERO risk for HIV and you do not need a test. You can only increase a risk IF a risk ever existed. You cannot increase a risk from zero.
In the interest of the health of your partners, you should stop having intercourse until your fungal infection has cleared. Unlike HIV, fungal infections can be easily passed from person to person.