Aberdeen moved level on points with Ladbrokes Premiership leaders Celtic after beating St Johnstone 4-3 at McDiarmid Park on Saturday.
Adam Rooney and Peter Pawlett had the Dons two goals up inside 20 minutes in Perth but David Wotherspoon pulled one back early in the second half.
It looked all over when Niall McGinn and Rooney stretched Aberdeen's lead but Steven Anderson and Tam Scobbie struck for Saints to ensure an anxious few minutes for Derek McInnes' side, who have now gone 12 league games without defeat.