def test_event_no_timeout(self): """Test no wait timeout, we should block forever, until we get one""" with eventpublisher_process(self.sock_dir): with salt.utils.event.MasterEvent(self.sock_dir, listen=True) as me: with eventsender_process({"data": "foo2"}, "evt2", self.sock_dir, 5): evt = me.get_event(tag="evt2", wait=0, no_block=False) self.assertGotEvent(evt, {"data": "foo2"})
def test_event_no_timeout(self): '''Test no wait timeout, we should block forever, until we get one ''' with eventpublisher_process(self.sock_dir): me = salt.utils.event.MasterEvent(self.sock_dir, listen=True) with eventsender_process({'data': 'foo2'}, 'evt2', self.sock_dir, 5): evt = me.get_event(tag='evt2', wait=0, no_block=False) self.assertGotEvent(evt, {'data': 'foo2'})