Boreham Wood scored twice in the final 10 minutes to keep their Vanarama National League promotion drive on course with a 2-0 win at Oldham.
Zak Brunt and Femi Ilesanmi had gone close during the first half for the visitors, who were looking for a third straight league win.
Brunt then saw a first-time effort hit the post on the hour mark, before midfielder Jack Payne finally broke the deadlock in the 82nd minute with a long-range effort.
Substitute Dennon Lewis made sure of victory when he nodded in a second in the final minute as the visitors moved into the play-off places.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.