James 1: …the testing of your faith develops perseverance.
Testing and trails are uncomfortable yet necessary. We value being made in to the likeness of Christ, however the process is not an easy one.
Learning to value the process and having faith in the result is a necessary state to really gain those benefits. Placing value on being made into his likeness and knowing that the process is arduous and by understanding it is by the hand of God will help us better endure.
Embrace this in prayer. Look forward in prayer and meditation to the next set of trials and begin the process now of accepting them and rejoicing. This will help you in that time of trial. You are children of God and he deeply values you and wants you to live in the best: the likeness of Christ. Oh God give us grace!