Then, the USSR only became expansionist as response to the German invasion. That invasion caused a huge rebound in Russia, after the Battle of Stalingrad.
Before that, the USSR was mired in killing it's own people. The USSR never would have lasted until 1989 without Hitler. Hitler saved the USSR and put them on a path towards expansion.