Don't beat yourself up if you turned to junk food for comfort. Many of us would have done the same thing. That does NOT make you a bad person or an unhealthy one. One less than perfect day or even week of eating will not make or break your healthy lifestyle.
Don't think "diet" as the PP noted. Diets are short term. If you want to take the weight off and keep it off, you need to think long term. Remember, you're trying to change habits learned over a life time. That's not going to happen overnight, a week, a month or even a year. Change takes time. Thus the need to be patient with yourself and your body.
For the time being, until you get your diagnosis, you're going to have to sit tight. Try to eat right to the best of your ability, but don't beat yourself up if you're not perfect either. And don't deprive your body of the calories it needs to be healthy. Until you hear from your doctor, eat foods that nourish your body. Don't worry about trying to cut your calories. Try to avoid the junk. Here's something I learned from my own years of yo yo dieting. If you eat crap, you'll feel like crap. Eat healthy foods and you'll start feeling healthy.
Take things one day at a time so that you can HEAL your body. And you need to eat to do that.