Esempio n. 1
0
 def test_testchain_progress(self, sandbox: Sandbox):
     """Make sure testchain is moving forward"""
     client = sandbox.client(0)
     level_testchain_before = client.get_level(chain='test')
     assert utils.check_level_greater_than(client,
                                           level_testchain_before + 1,
                                           chain='test')
Esempio n. 2
0
 def test_new_chain_progress(self, sandbox: Sandbox):
     # sandbox.rm_baker(0, proto=PROTO_A_DAEMON)
     client = sandbox.client(0)
     level_before = client.get_level(chain='main')
     tenderbake(client)
     print(f"level before {level_before}")
     assert utils.check_level_greater_than(client, level_before + 1)
Esempio n. 3
0
 def test_new_chain_progress(self, sandbox: Sandbox):
     client = sandbox.client(0)
     level_before = client.get_level()
     assert utils.check_level_greater_than(client, level_before + 1)
Esempio n. 4
0
 def test_still_level_increases(self, sandbox_multibranch):
     client = sandbox_multibranch.client(0)
     res = client.rpc('get', '/chains/main/blocks/head/header/shell')
     level_before = res['level']
     assert utils.check_level_greater_than(client, level_before + 1)