Anxiety and period

Last month I got my period twice. This never happened before. I also have irregular cycles but not like this. I got my period from June 28th to July 2nd then again from July 16th to the 21st. It was a normal flow like my period, no light spotting or anything. I was scared so I took a pregnancy test on July 23rd (two days after my second period ended) and it was negative. But my anxiety is telling me I somehow took the test too early. Other people are saying I didn’t even need to test because I got my period. Please just help me calm my anxiety. What could be going on?