has lost to Governor Andrew Cuomo in the New York Democratic primary.

On Thursday, Democrats had been voting on whether Cuomo deserved a third term or should be replaced by the Sex and The City actress and activist, a first-time candidate mounting a challenge from the left.

After the results were announced, she tweeted: “I want to thank all of the TeamCynthia volunteers, supporters, and voters who dedicated their time to championing the progressive message of our campaign. I’m so proud of all the work we’ve done to build a New York that works for all of us.”

The nominating contest was the latest test for candidates from the party’s energized left wing as Democrats seek to regain control of the U.S. Congress and bolster their ranks in state governments across the country in November 6 elections.

Cynthia Nixon promotes New York governor campaign with Sex And The City merch

Nixon, best known for her Emmy-winning role on HBO’s Sex and the City, had been trailing Cuomo by 30 points or more in opinion polls.

The race had turned increasingly bitter and expensive, as Cuomo spent $18 million to Nixon’s $1.6 million, according to state figures.

Nixon, who has never held office, has said Cuomo’s experience has not translated to good governance, Cuomo has said she is inexperienced and naive.

In a contentious debate last month, Cuomo told Nixon to stop interrupting him, to which she responded: “Can you stop lying?”

Cuomo, 60, was born into politics as the son of Mario Cuomo, a longtime public figure who also served as New York governor.

The race had turned increasingly bitter and expensive, as Cuomo has spent $18 million to Nixon’s $1.6 million, according to state figures

The younger Cuomo, a former Clinton administration official, controls the party’s state machinery and secured endorsements from members of the party establishment.

Before casting his ballot at a church in the town of Mount Kisco, Cuomo said New Yorkers must stand up to changes being made in Washington that he said ran counter to the state’s values, according to local channel News 12 Westchester.

“There is a divisiveness that is coming out of Washington that I think is cancerous to our nation,” Cuomo said.