node/test: Add timeouts to functions that wait
The two functions connect and converge used in tests potentially
loop forever. Add timeout mechanisms to both.
The two functions connect and converge used in tests potentially
loop forever. Add timeout mechanisms to both.