Only four balls were left, and the last men were in when Stags thirds secured a win over Rochdale thirds at Redbrook.
Both teams in this friendly fixture included mainly junior players.
Harry Butterworth scored 26 and Thomas Schofield hit 22 as Rochdale totalled 117-9.
Jack Taylor took three wickets and Matthew Findlow took two.
Danny Devine (35) and Spencer Allen (23) put on 60 in a good opening partnership for Stags, but wickets then started to tumble.
Jack Taylor added 10 and Matthew Findlow scored 12 in the reply of 118-9.
For Rochdale, James Bluer, Jacob Pauline, Harry Whittles and Sam Gauge each took two wickets.