The promise is that we will receive wisdom if we ask God for it. The condition to this promise is that we must ask believing that He will do it.. WE can not doubt, otherwise we will be like a ship being tossed by the wind and will be called double minded!
Trials are the things in life that help us to grow! It gives us experience to use the principles of God that we knnow.