Fix socket timeout test -- mock the side_effect
Merge pull request #222 from dpkp/fix_socket_timeout_test

Fix socket timeout test -- mock the side_effect