Having faith doesn’t mean expecting everything to work out the way you want it to. It doesn’t even mean that life will be great for you. There are plenty of examples of people who put their trust in God and yet lived tragic lives.
Faith is about trusting God regardless of what happens, in the belief that this life is more than what it appears to be.