fair-weather friend - definition and synonyms

noun [countable] showing disapproval 

Your browser doesn’t support HTML5 audio

singularfair-weather friend
pluralfair-weather friends
  1. someone who only wants to be your friend when things are going well for you