Joe Ralls finds the net inside 30 seconds to maintain City's unbeaten pre-season campaign.
Cardiff City ended their pre-season games with a 1 - 0 home win over Patrick Vieira's Nice.
The game was barely 24 seconds old when a period of quickfire passing and movement saw Ralls curl the ball home from 20 yards.
With a week to go until the first game of the new season Neil Warnock gave his senior players a run out. Gary Madine lasted less than half an hour before before being taken off with an injury.
"I have just said to them yes it was a good work out today," said Warnock "but that is going to be nothing like next week at Wigan. Wigan are a good side, physical as well, so it will be hard work but we couldn't have wished for any more."
Cardiff City: Etheridge (Day 71’), Peltier (Nelson 63’), Bennett (Brown 71’), Morrison, Flint, Ralls (Vaulks 63’), Murphy (Hoilett 63’), De Cordova-Reid (Tomlin 63’), Bacuna, Mendez-Laing (Bogle 63’), Madine (Ward 26’).
Subs not used: N/A.
OGC Nice: Clementia, Coly (Pelmard 78’), Cissé, Sarr, Burner, Lusamba (Wade 78’), Tameze (Cyprien 52’), Brazão (Maolida 64’), Sylvestre, Sacko, Ganago (Saint-Maximin 64’).
Subs not used: Boulhendi, Cardinale, Hérelle, Barbosa da Silva, Lees-Melou, Guessand, Gameiro.