How long do you have to wait to get an STD test that will show good results?

Depends. Various stds have various incubation periods. Your best bet is to be seen and tested asap, and the repeat the test every few months.