dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

finalization_vote.py is floating #1092

Closed cmihai closed 5 years ago

cmihai commented 5 years ago
finalization_vote.py failed, Duration: 11 s
stdout:
2019-05-10T10:00:00.195000Z TestFramework (INFO): Initializing test directory /tmp/test_runner_U⋮_🏃_20190510_094946/finalization_vote_87
2019-05-10T10:00:00.195000Z TestFramework (INFO): Debug file at /tmp/test_runner_U⋮_🏃_20190510_094946/finalization_vote_87/node0/regtest/debug.log
Starting node 0 with args: 
Starting node 1 with args: -validating=1
Starting node 2 with args: -validating=1
Starting node 3 with args: -validating=1
2019-05-10T10:00:04.937000Z TestFramework (INFO): Finalizers voted after first block of new epoch
2019-05-10T10:00:07.906000Z TestFramework (INFO): Finalizers voted on a configured block number
2019-05-10T10:00:09.390000Z TestFramework (INFO): Finalizers voted after configured block number
2019-05-10T10:00:09.485000Z TestFramework (INFO): Tested outdated and invalid vote votes
2019-05-10T10:00:10.733000Z TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/home/travis/build/dtr-org/unit-e/build/unit-e-x86_64-unknown-linux-gnu/test/functional/test_framework/test_framework.py", line 203, in main
    self.run_test()
  File "/home/travis/build/dtr-org/unit-e/build/unit-e-x86_64-unknown-linux-gnu/test/functional/finalization_vote.py", line 170, in run_test
    self.wait_for_vote_and_disconnect(finalizer=finalizer3, node=node0)
  File "/home/travis/build/dtr-org/unit-e/build/unit-e-x86_64-unknown-linux-gnu/test/functional/test_framework/test_framework.py", line 480, in wait_for_vote_and_disconnect
    assert_equal(len(new_txs), 1)
  File "/home/travis/build/dtr-org/unit-e/build/unit-e-x86_64-unknown-linux-gnu/test/functional/test_framework/util.py", line 42, in assert_equal
    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(2 == 1)
2019-05-10T10:00:10.785000Z TestFramework (INFO): Stopping nodes
2019-05-10T10:00:11.048000Z TestFramework (WARNING): Not cleaning up dir /tmp/test_runner_U⋮_🏃_20190510_094946/finalization_vote_87
2019-05-10T10:00:11.048000Z TestFramework (ERROR): Test failed. Test logging available at /tmp/test_runner_U⋮_🏃_20190510_094946/finalization_vote_87/test_framework.log
2019-05-10T10:00:11.052000Z TestFramework (ERROR): Hint: Call /home/travis/build/dtr-org/unit-e/build/unit-e-x86_64-unknown-linux-gnu/test/functional/combine_logs.py '/tmp/test_runner_U⋮_🏃_20190510_094946/finalization_vote_87' to consolidate all logs

Full log: log.txt

frolosofsky commented 5 years ago

It is supposed to be fixed in #1082. @kostyantyn ?

kostyantyn commented 5 years ago

@cmihai @frolosofsky I'll adjust the code in https://github.com/dtr-org/unit-e/pull/1082 to fix the issue