Esempio n. 1
0
 def testBlocking(self):
     import bitHopper.LongPoll as lp
     import gevent
     def trigger():
         lp.wait()
     gevent.spawn(trigger)
     lp.trigger('Not used right now')
     gevent.sleep(0)
     self.assertTrue(True)
Esempio n. 2
0
    def testBlocking(self):
        import bitHopper.LongPoll as lp
        import gevent

        def trigger():
            lp.wait()

        gevent.spawn(trigger)
        lp.trigger('Not used right now')
        gevent.sleep(0)
        self.assertTrue(True)
Esempio n. 3
0
 def trigger():
     lp.wait()
Esempio n. 4
0
 def trigger():
     lp.wait()