Thanks for posting your query.
Since you don't know the HIV
status of your partner and the condom tore, there has been an exposure and there is some risk.
The best thing would be for you to get tested.
The earliest test that you could do would be the DNA PCR test. This can be done after 21 days.
This test is has a high accuracy and sensitivity.
The chances of getting infected from a single encounter with a positive female partner are low, especially since you have stopped as soon as the condom tore.
Remain calm and hope for the best.