When should I test?

How long should I wait to test? My friend tested at 10dpo and was negative and still ended up pregnant. I want to save myself from disappointment.