예제 #1
0
 def test_check_operations(self, sandbox_multibranch: SandboxMultiBranch):
     min_level = min([
         client.get_level() for client in sandbox_multibranch.all_clients()
     ])
     heads_hash = set()
     # check there is exactly one head
     for client in sandbox_multibranch.all_clients():
         block_hash = utils.get_block_hash(client, min_level)
         heads_hash.add(block_hash)
     assert len(heads_hash) == 1
예제 #2
0
 def test_wait_for_alpha(self, sandbox_multibranch: SandboxMultiBranch):
     clients = sandbox_multibranch.all_clients()
     for client in clients:
         proto = ALPHA
         assert utils.check_protocol(client, proto)
예제 #3
0
 def test_synchronize(self, sandbox_multibranch: SandboxMultiBranch):
     utils.synchronize(sandbox_multibranch.all_clients())