That’s a bad example, because at that point Yugoslavia couldn’t have existed without Tito – he was an extremely authoritarian figure that cracked down on any sort of controversial thought hard. Having an intelligent dictator as the unifying force isn’t a particularly good strategy, and Yugoslavia was bound to fail without an authority forcing it to stay together. There were many human rights violations done to keep the peace and equality in the nation.
Yugoslavia also wasn’t exactly as “communist” as other communist countries, they allowed private ownership of property and business and relied a lot on surrounding capitalist countries to have a decent standard of living and economy.