Glasgow Warriors flanker Rob Harley scored a dramatic late try on his international debut to earn Scotland a single-point victory over Samoa in the final game of their three-match southern hemisphere tour.
Andy Robinson's men had been outplayed for much of the match and trailed 16-10, with only seconds remaining at Apia Park.
However, the hosts buckled under a spell of sustained Scotland pressure as Mike Blair found Harley, who exposed a huge gap out wide on the left to touchdown with ease.
Greig Laidlaw slotted the simple conversion to ensure that Robinson's side ended the tour with a 100% record, having previously beaten Australia and Fiji.