If your doctor tells you that you have terminal cancer and you will die within 2 weeks. You expect to die within 2 weeks, but I dont think that makes you suffer any less.
I don't think that's a Buddha teaching and I would call that a learning experience.
The correct would be attachment/craving/desire, not expectation.