fixed sleep in the wrong place in the long poll unit test