Ben Woodburn emerged as the last-gasp hero as Wales warmed up for the start of their 2020 European Championship campaign with a 1-0 friendly victory over Trinidad and Tobago in Wrexham.
Woodburn struck from close range as the game ticked into stoppage time, the Liverpool teenager chesting home Will Vaulks' cross for his second Wales goal.
Manager Ryan Giggs will be grateful for the win – his fourth from his 10 games – as Wales head into a tournament that the former Manchester United star says will define his time in charge.
Trinidad and Tobago are ranked 93rd in the world – 74 places lower than Wales – and the Soca Warriors fielded players from little-known clubs such as Churchill Brothers, Lansing Ignite and Memphis 901.
Giggs selected a shadow side with the opening Euro 2020 qualifier against Slovakia in Cardiff only four days away.
Gareth Bale, Aaron Ramsey and David Brooks were among the headline acts missing, and it is quite possible that only captain Ashley Williams of the starting XI in Wrexham will play on Sunday.
There were plusses, with Barnsley winger Ryan Hedges promising in flashes and Rotherham midfielder Vaulks displaying tenacity and awareness on his international debut.
But Wales' young strikeforce were largely devoid of ideas, although George Thomas saw a headed effort ruled out for offside midway through the second half.
Ten minutes earlier the Soca Warriors had almost taken a shock lead when Aubrey David's powerful shot was cleared off the line by Chris Gunter.
The game marked Wales' return to Wrexham for the first time since a 3-0 victory over Norway in February 2008 and added another chapter to the Racecourse Ground's rich history.
The ground is recognised as the world's oldest football stadium that still hosts international matches, having staged Wales' first home match in 1877.
Wales had won the only previous game between the two nations – a 2006 friendly that was played on neutral Austrian territory and was notable for Bale becoming his country's youngest-ever player at the age of 16 years and 315 days.
Bale did not even make the bench 13 years on as Giggs, already without the injured Ramsey, protected key personnel before the serious stuff starts.
Wales looked on paper like a team that had been thrown together, and so it showed with misplaced passes the theme of an uneventful first half.
Hedges stood above an average crowd by combining the odd burst down the right flank with offering a goal threat at the far post.
His third-minute cross was met by the head of Tyler Roberts and held under his own crossbar by Marvin Phillip.
The visiting goalkeeper was also well-positioned to deny Hedges and Woodburn, but he was grateful for Thomas' wayward attempt after Lee Evans had picked him out on the edge of the area.
Woodburn attempted to catch Phillip napping with a free-kick directed towards his far post, but the Liverpool striker was slowed by a rash tackle which earned Kevan George a booking close to the interval.
The Soca Warriors' only effort of note in the first half saw Danny Ward easily gather Khaleem Hyland's effort from 25 yards, but replacement goalkeeper Adam Davies had more cause for concern and was grateful for Gunter's goal-line intervention.
Thomas stung Phillip's palms and saw what would have been his first international goal disallowed, and there appeared no way through for Wales until Woodburn popped up to supply the winner from Vaulks' excellent cross.