Many fans in New Zealand would've stayed up late. Azhar Ali (65) and Asad Shafiq (45) seemed to have carried Pakistan to victory with an 82-run fourth wicket stand before Wagner broke through just before lunch by having Shafiq caught behind.
Patel was selected as a replacement for Mitchell Santner in New Zealand's 15-man squad for the test series against Pakistan, following impressive performances in the Plunket Shield, New Zealand's domestic tournament.
This isn't a Test designed for predictions, but a gruelling day where momentum ebbed and flowed ended with Pakistan in a strong position to take a 1-0 lead in the three-match Test series. "In the end, it came down to the wire", said New Zealand skipper Kane Williamson.
It is the closest margin of victory by runs in a Test for 13 years and the fifth-smallest in Test history.
The visitors reviewed the decision, but the ultra-edge showed a huge spike on the big screen after a clean catch from Sarfraz Ahmed, which meant the half-centurion had to walk back to the pavilion.
Kiwi spinners Patel and Ish Sodhi opened the bowling and immediately caused problems as Pakistan lost three wickets in the first six overs.
Neville full of praise for Liverpool's 'passionate' Lovren
Croatia then faced Spain in the Nations League on Thursday evening, snatching a dramatic 3-2 win in stoppage time. Whilst still in the dressing room after the game, he said live on Instagram: "Go ahead and talk now buddy.
With a Test match strike rate of 43, a career average of 38 and a CV that boasts involvement in two partnerships in excess of 300, Watling is built for the grind of the UAE Test match cricket. Very rarely were false shots played in the pursuit of runs, but equally, the score did not stagnate altogether.
Williamson admitted the win was dramatic, with fortunes fluctuating throughout the day on which Pakistan needed a further 139 with all ten wickets intact.
Patel turned one sharply to trap Imam-ul-Haq in front then Sodhi added two wickets in four balls.
For Pakistan, Yasir Shah was the pick of the bowlers as he got three wickets. 112 runs in 51 overs might not suggest fluency, but it did provide a glimpse of the steeliness with which the pair brought New Zealand back into the game. "We know Pakistan have got good players of spin, but we kept chipping in there", left-armer Patel said.
The second test between the sides will take place in Dubai between Nov 24-28 with the third test all set to take place in Abu Dhabi again from Dec 3-7.