I might add, too, that God allowed Satan to test Job because God knew how much Job could stand. He knew Job's strength.
Job got angry at God, yes. But he never moved away from God.
__________________
Psalm 119:105 Thy word is a lamp unto my feet, and a light unto my path.