With 15 minutes left to play of this Copa Del Rey second leg tie, Cadiz were still in the box seat with a 2-1 aggregate from the first leg, however, substitute Hernan Perez popped up in the nick of time to send Espanyol through on away goals.
Hardly the best preparation for the Catalan derby at the weekend, the hosts were outplayed for long periods, and as the clock began to tick down, play became more and more fraught.
Espanyol can count themselves lucky that Jose Angel Carillo and Alberto Perea didn't have their shooting boots on.
The visitors still had time for a couple of late chances, but as with the others earlier in the game, they were both wasted.