MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / test_work_queue_exceeded

Method test_work_queue_exceeded

test/functional/interface_rpc.py:229–239  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

227 assert_equal(block_count + 1, self.nodes[0].getblockcount())
228
229 def test_work_queue_exceeded(self):
230 self.log.info("Testing work queue exceeded...")
231 self.restart_node(0, ['-rpcworkqueue=1', '-rpcthreads=1'])
232 got_exceeded_error = []
233 threads = []
234 for _ in range(3):
235 t = Thread(target=test_work_queue_getblock, args=(self.nodes[0], got_exceeded_error))
236 t.start()
237 threads.append(t)
238 for t in threads:
239 t.join()
240
241 def run_test(self):
242 self.test_getrpcinfo()

Callers 1

run_testMethod · 0.95

Calls 4

infoMethod · 0.80
joinMethod · 0.80
restart_nodeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected