The exes both attended the party, but "did not engage with one another," says a source

Credit: Michael Buckner/Getty

Selena Gomez may be busy promoting her new single “Good For You” lately, but the singer took some time to have a fun night out with her pals at a private party celebrating Tori Kelly’s debut album.

Hosted by Scooter Braun Thursday night at The h.wood Group’s The Nice Guy, the party drew Gomez and pal Ed Sheeran, Justin Bieber, Ashley Benson, Cody Simpson, Rixton, Fifth Harmony and Meghan Trainor.

“Selena came with Ed and left with him shortly after Justin arrived,” says a source. “Justin and Selena definitely saw each other, but they did not engage with one another.”

Gomez and Sheeran – who are both BFF with Taylor Swift – were “smiling, laughing and mingling around the restaurant,” adds the source. “They seemed genuinely happy.”

What Girls Night Is like with Selena Gomez, Kendall Jenner and Gigi Hadid

During Kelly’s performance, Bieber and Ashley Benson sat front and center singing along to her song “Unbreakable Smile,” after which the “Baby” singer gave her a standing ovation.

At one point, Trainor hopped on stage and performed a quick rendition of her hit song “All About That Bass” with Kelly.

Bieber left with his entourage of male pals around 1 a.m., and one of the last to leave was newly single Simpson, who was spotted leaving with an unidentified gal pal at 1:30 a.m.