Santi Cazorla and Juanfran were on target as Spain laboured to a 2-1 friendly victory over Equatorial Guinea.
The world champions dominated the majority of the game in Malabo on Saturday but were wasteful in front of goal, with substitute Fernando Llorente particularly guilty.
Andoni Goikoetxea's charges briefly threatened a shock draw when Jimmy Bermudez cancelled out Arsenal midfielder Cazorla's opener, but Juanfran's winner spared Spain's blushes.
Spain produced the best openings of the first half and Jesus Navas' lob almost put the visitors ahead efore Cazorla capitalised on a mistake from Danilo.
Equatorial Guinea equalised through Bermudez's header, but the sides were level for just seven minutes as Juanfran thrashed home from close range.
Spain had several opportunities to increase the lead and Llorente thought he had added a third, only for Andres Iniesta to be ruled offside in the build-up.
Vicente del Bosque took the opportunity to rest several of his star players and handed a debut to Marc Bartra, while Ivan Bolado was given the role as Equatorial Guinea's lone striker.
The visitors dominated first-half possession and were nearly ahead as early as the seventh minute when Navas' inventive chip almost dipped over Danilo.
Spain were duly rewarded for their pressure six minutes later, when Danilo dropped a straight-forward cross from Juan Mata and Cazorla profiting from the gaffe as he tapped into the empty net.
Equatorial Guinea had their first sight of goal after 35 minutes when Rodolfo Bodipo met Javier Balboa's centre, but his strike was deflected over the crossbar.
And from the resulting corner the home fans were sent into delirium when Bermudez levelled by rising highest to head home Juvenal Edjogo's delivery.
However, their joy was short-lived as three minutes before the break Cazorla's cross deflected into the path of Juanfran and he rifled home from close range.
Llorente was introduced as a second-half substitute and will feel he could have done better after 54 minutes when he shot tamely at Danilo from Navas' cushioned header.
The Juventus striker did have the ball in the back of the net on the hour-mark when he tapped home Iniesta's centre, but the Barcelona midfielder was harshly adjudged to be offside in the build-up.
Spain's dominance continued and Llorente missed another clear opportunity with a weak back-post header from Navas' deft cross with 20 minutes remaining.
Several substitutions in the close stages stemmed the flow of the match, as Spain comfortably saw out the victory.
|Coach: Andoni Goikoetxea|
for Iván Bolado 46'
for Fidjeu 61'
for Doualla 82'
for Javier Balboa 86'
for Juvenal 89'
|Hasselbaink denies wrongdoing amid impropriety allegations|
|Ancelotti frustrated by slow, toothless Bayern|
|Barcelona deserved their win - Luis Enrique|
|I want Celtic atmosphere at City – Guardiola|
|Rebrov defends Yarmolenko after ´difficult´ match|
|Rostov draw is two points dropped for PSV, says De Jong|
|Torres eyeing ´magical´ year for Atletico|
|Celtic 3 Manchester City 3: Dembele at the double in six-goal thriller|
|Celtic 3 Manchester City 3: Dembele at the double in six-goal thriller|
|Rostov 2 PSV 2: Propper´s penalty miss costs visitors|
|Besiktas 1 Dynamo Kiev 1: Tsygankov stuns wasteful Turks|
|Napoli 4 Benfica 2: Mertens bags two as Napoli run riot|
|Arsenal 2 Basel 0: Walcott´s capital gains tax Swiss visitors|
|Borussia Monchengladbach 1 Barcelona 2: Pique grabs the winner|
|Atletico Madrid 1 Bayern Munich 0: Carrasco gives Ancelotti first taste of defeat|
|Ludogorets 1 Paris Saint-Germain 3: Cavani inspires comeback win|
|Premier League, FA and EFL to investigate transfer allegations|
|Vardy reveals matchday energy drink and port routine|
|Everton coping without Stones, says Jagielka|
|Sacked Jemez admits to ´great sadness´ at Granada exit after worst start in over 70 years|
|Wenger has so much to offer English football - Schmeichel|
|No truth to England rumours, says Klinsmann|
|Spalletti demands end to damaging Roma ´games´|
|De Boer: Brozovic was punished and forgiven|
|Allardyce paid price for lack of privacy - McClaren|
|Milik can match Lewandowski - Reina|
|LMA ´extremely concerned´ about manager bribe allegations|
|Iwobi: I nearly left Arsenal|
|Mata has found a ´natural habitat´ at United|
|Higuain slowly approaching top form|
|´Stupid´ Allardyce driven by money - Dyke|
|Wijnaldum vows to improve|
|Renato Sanches needs time at Bayern - Hitzfeld|
|Ibrahimovic nurturing United talent - Lingard|
|Mourinho feels sorry for Allardyce|
|United boss primed for ´must-win´ Europa League tie|
|Mourinho keen to protect under-fire Rooney|
|Jeonbuk Motors 4 Seoul 1: Leonardo brace puts hosts in the driving seat|
|Maloney returns to Scotland squad|
|Van Persie: Kids will decide my future|
|Entrapment won on this occasion - Allardyce|
|Ibra-Rashford pairing the answer for United - Neville|
|Tevez hints at imminent retirement|
|England in safe hands with Southgate - Glenn|
|Holman talks up A-League quality|
|CONCACAF Champions League Review: Red Bulls progress, Timbers win|
|Januzaj blow for Sunderland|
|Navas accepts blame for Dortmund equaliser|
|Sporting assistant Raul Jose pleased with win|
|Nuno left to regret slow start as Porto fail on English soil again|
|Vardy rejected Arsenal due to style|
|Simeone: I am not Griezmann´s mentor|
|Schmidt bemoans ´brutal´ Monaco equaliser|
|Ranieri doesn´t trust bookies over England job|
|Genesio worried wastefulness will cost Lyon in long run|
|Preud´homme admits Champions League too much for Club Brugge|
|Telegraph passes findings to FA after further corruption claims|
|Zidane: Draw difficult to accept|
|Pochettino delighted with in-form Son|
|Vietto undeterred by wasteful showing|
|Tuchel: Dortmund can still get better|
|Resilient Leicester display pleases Morgan|
|Glenn reflects on ´painful´ call to dismiss ´distraught´ Allardyce|
|Borussia Dortmund 2 Real Madrid 2: Late Schurrle strike salvages draw|
|Monaco 1 Bayer Leverkusen 1: Glik stunner snatches a point|
|Dinamo Zagreb 0 Juventus 4: Pjanic pilots comfortable victory|
|CSKA Moscow 0 Tottenham 1: In-form Son hits late winner|
|Copenhagen 4 Club Brugge 0: Delaney stunner helps Danish champions canter to victory|
|Sporting CP 2 Legia Warsaw 0: Magiera´s first game ends in defeat|
|Sevilla 1 Lyon 0: Ben Yedder seals win for Europa League holders|
|Leicester City 1 Porto 0: Slimani continues to haunt old foes|
|Shearer: Allardyce has made England a laughing stock|
|Howe, Pardew and Wenger among the contenders to succeed Allardyce|
|Emery´s PSG struggles give Ludogorets hope|
|Allardyce offers ´wholehearted apology´ for England shame|
|Lahm: ´Extraordinary´ Griezmann different to Lewandowski|
|Iniesta is the best in the world, claims Menotti|
|Irregular heartbeat ends Dempsey´s season|
|Bournemouth ´realistic´ over permanent deal for Wilshere|
|Guardiola warns against complacency|
|Allardyce and England part company after damning video|
|De Bruyne out for up to three weeks - Guardiola|
|Luis Enrique demands fast start at Gladbach|
|Ancelotti wary of Atletico threat|
|Al Ain 3 El Jaish 1: Caio capitalises on late error|
|Ter Stegen happy with solution to Bravo battle|
|Emery: PSG need time to gel|
|Hernandez: It was very difficult at Real Madrid|
|Derby stand down Pearson ahead of Cardiff match|
|Rodgers sympathises with ´poor guy´ Allardyce|
|Opponents are trying to get Ribery send off - Hoeness|
|Martino named Atlanta United head coach|
|Rodgers urges Celtic to have belief against City|
|Rodgers has made same impact as Guardiola - Brown|
|Benfica one of the best in Europe, warns Sarri|
|Menotti: Ronaldo never played in a team like Messi´s|
|Walcott happy to move on from Arsenal struggles|
|Champions League Matchday Two: Bayern hunt Atleti revenge|
|Coquelin facing three weeks out|
|Arsenal transfers beyond reproach, says Wenger|
|Schubert extends Gladbach contract|
|Lewandowski urges Bayern to learn from Atletico defeat|
|Griezmann feared Simeone to PSG was ´a done deal´|
|FA investigating Allardyce claims|
|Valencia keep Voro in charge for Atletico clash|
|One of Serie A´s all-time greats: The numbers behind Totti at 40|
|Toure brands FIFA ´complacent´ after racism taskforce closed|
|Emery expects Ronaldo to stay at Real Madrid|
|Tottenham not scared of Moscow trip - Alderweireld|
|Sessegnon signs with Montpellier|
|Rakitic delighted with form|
|Gameiro: I could have joined Barcelona|
|Stones talks up Celtic quality|
|Liverpool good enough to win title - Houllier|
|Klopp happy with Firmino in central role|
|Watford got bullied all over the pitch - Deeney|
|Nuno keen for Porto to end England misery|
|Legia boss Magiera set for whirlwind debut|
|´Terrific´ Burnley delight Dyche|