The Indian cricketers made heavy weather of a modest run chase before securing a four-wicket victory against Sri Lanka in the second match of the triangular series in Perth.
After restricting Sri Lanka to 233 for eight, Virat Kohli hit 77 and Sachin Tendulkar 48 put India in a strong position before a middle order collapse nearly derailed their innings.
It was left to India's last recognised batting pair of Ravindra Jadeja and Ravichandran Ashwin to steer them home with 20 balls to spare.
In a rematch of the 2011 World Cup final which India won in Mumbai, Sri Lanka struggled for momentum with the bat.
India lost their opening match when they lost to Australia by 65 runs in Melbourne on Sunday.