Head coach Rob Moffat felt an overdue piece of luck helped his Edinburgh side hold off a late charge from Castres to secure their first Heineken Cup win of the season at an empty Murrayfield.
Simon Webster capitalised on a mistake to score the decisive try as Edinburgh claimed a 24-22 victory, their first in Pool One after narrow losses to Northampton, Cardiff Blues and last week's 21-16 reverse in Castres. The match was postponed for 24 hours due to snow and ice and played in front of an empty 67,000-seat stadium.
"I thought both teams and the referee did well to get a decent game of rugby and it deserved a crowd," said Moffat. "For us it was good to win. You could say it was a lucky try at the end, their boy messed it up, but so what? Over four games we deserved that and we worked really hard for it."
Edinburgh took a 14-10 half-time lead after Tim Visser scored a try and set up another for Lee Jones.
But Greig Laidlaw's sin-binning midway through the second half was followed by a Castres penalty try and another score for Sebastien Tillous-Borde, leaving Edinburgh trailing by five points with four minutes remaining.
But for the second week running Webster came off the bench to score a try, with David Blair adding the extras.