Postpartum pregnancy test

Elizabeth
At this point I'm only having light brown or pink discharge so I had sex with my boyfriend who decided not to pull out last minute😣😠 ... how long do I wait to take a test I'm super paranoid that I might be pregnant please help