mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* add timestamp to transaction assignment * add reassignment delay to configuration * refactor to multipipes * # This is a combination of 7 commits. # The first commit's message is: stale transaction monitor and tests # The 2nd commit message will be skipped: # simplify logic # The 3rd commit message will be skipped: # node will assign to self # The 4th commit message will be skipped: # block listens for insert and update # The 5th commit message will be skipped: # more test coverage # The 6th commit message will be skipped: # test coverage # The 7th commit message will be skipped: # test coverage * stale transaction monitor and tests * update operation only returns new value
24 lines
648 B
Python
24 lines
648 B
Python
from unittest.mock import patch
|
|
|
|
from multiprocessing import Process
|
|
from bigchaindb.pipelines import vote, block, election, stale
|
|
|
|
|
|
@patch.object(stale, 'start')
|
|
@patch.object(election, 'start')
|
|
@patch.object(block, 'start')
|
|
@patch.object(vote, 'start')
|
|
@patch.object(Process, 'start')
|
|
def test_processes_start(mock_vote, mock_block, mock_election, mock_stale,
|
|
mock_process):
|
|
from bigchaindb import processes
|
|
|
|
processes.start()
|
|
|
|
mock_vote.assert_called_with()
|
|
mock_block.assert_called_with()
|
|
mock_election.assert_called_with()
|
|
mock_stale.assert_called_with()
|
|
mock_process.assert_called_with()
|
|
|