This was an idle shift, and there was no one underground. Our examiner was performing the elevator check and when ee pushed the button for over travel the elevator went to the bottom and brought it back to the top. But, it was stuck in over travel. There was no one underground, maintenance chief was called out to make repairs. Function test was made and working correctly.