The same thing happened with Germany. Everyone in the early 1900s was thinking that the Weimar Republic was going to birth the first socialist nation, and then they got the Nazi party instead.
Ends up that stagnation creates populist movements on both sides of the political divide, and often the centrist in government would rather throw in with the far right than cede power to socialist.