def test_multi_thread(self):
        _thread.start_new_thread(write_in_queue, ())

        args = TestArgs()
        args.proxy = "http://localhost:7950"
        args.pem = "./../../../file.pem"
        args.interval = 2
        queue = TransactionQueue()
        queue.dispatch_transactions_continuously(args)

        self.assertFalse(False)
Exemplo n.º 2
0
def dispatch_transactions_continuously(args):
    queue = TransactionQueue()
    queue.dispatch_transactions_continuously(args)