What I have learned is that God hates divorce and that he wants us to stand for our marriages, it says this in the bible. The bible also says that for anyone that fallows his commands will be rewarded. In some regards this is a test on us, but also so that people can see what we do. We are used as a tool to show people how God works and that by having faith God will bless you, when other people see what is happening then God's purpose it to draw other people closer to him. This is done because of his love for us. Sometimes some pain is needed in order to fulfill the greater cause. Just keep in mind your faith and perseverance will be rewarded and your marriage restored, it's what God wants. Also his time table is different than ours, I think our not knowing when is the toughest part, but God has a plan for all our why's.