BOSTON — Isaiah Thomas and the Boston Celtics passed a surprisingly tough test Friday night to keep their hold atop the Eastern Conference.

Thomas scored 35 points, Jae Crowder had 18 and the Celtics rallied to beat the Orlando Magic 117-116 to maintain their slim lead over Cleveland in the East.

The Cavaliers won easily against Philadelphia, staying within a half-game of Boston.

The Celtics faced multiple 13-point deficits, but Thomas helped them charge back and Al Horford put them up by a point with two free throws with 1:22 left. Orlando then missed three shots down the stretch, including a driving layup attempt by Elfrid Payton with 2 seconds remaining.

For Boston, it was easily the toughest of three victories against Orlando this season – the first two came by 30 points each.

“Any way we can get a win is what we’re looking forward to,” Thomas said. “They’re a different team. … They’ve been playing a lot better since the All-Star break.”

Orlando opted not to call a timeout and set up a play before Payton’s drive.

“We all knew that was going to be the plan,” Magic Coach Frank Vogel said. “I love that we attacked in a scramble situation like that and got to the rim.”

Aaron Gordon scored 20 of his 32 points in the first half and had 16 rebounds, and Evan Fournier scored 20 points for the Magic. Payton dished out a career-high 15 assists and flirted with a triple-double, getting 12 points and nine rebounds.

Ross had 17 points and Jodie Meeks contributed 13 off the bench for Orlando, which has lost three in a row and 8 of 11. The Magic have dropped 13 straight against the Celtics in Boston.

Boston fell behind by 13 with 1:50 to play in the first half, drawing boos from the home crowd. But the Celtics used a quarter-closing surge to pull within 64-57 at the break.

“I did tell them you’re going to have nights like this,” Celtics Coach Brad Stevens said. “You’re going to have nights where, man, it feels like it’s tough to get going and the other team is rolling.”

NOTES: G Avery Bradley (illness) was out with a recurrence of the stomach bug that forced him to be hospitalized and miss last Friday’s game against Phoenix. “He’s not in the hospital, but he’s not doing so hot,” Stevens said. … Thomas extended his franchise-record streak of games with at least one 3-pointer to 51. … Boston had not led the East before this week since March 22, 2011. Bradley is the only member of that 2011 team still on the roster, but the team’s inexperience on top isn’t a concern for the coaching staff. “This is a group that doesn’t feel any pressure. They just play,” Celtics assistant Walter McCarty said. “We’ve never talked about getting the first seed.”