peer: add recovery delay to make test behave

Otherwise it was (very) racy!
(cherry picked from commit 6e3c2d93fb010afe6415a1964b8b2c429333ea0a)