+func (tc *testingHttpRtmgrStub) AllocNextSleep(sleep int, nextAction bool) *HttpEventWaiter {
+ eventWaiter := &HttpEventWaiter{
+ resultChan: make(chan bool),
+ nextActionOk: nextAction,
+ sleep: sleep,
+ }
+ eventWaiter.TestWrapper.Init("localhost:" + tc.port)
+ tc.NextEvent(eventWaiter)
+ return eventWaiter
+}
+