You thought that you would fail, but you were wrong. Shake off the shock, and indulge in the victory.
I learn a lot from my everyday experiences. I make plenty of mistakes, but I do my best, even if painful, to consider what I should learn from the experience. I find that it makes me stronger, smarter and more focussed. My advice to you today is to do the same. Step back, look at what has happened and learn. Those who do are seldom destined to rinse and repeat the same mistakes twice.
Magical thinking, whereby you hope that something happens without any real effort, is not a practical way to get things moving.