shohu / c0ban

c0ban source tree
MIT License
0 stars 0 forks source link

Pass for test blockchain.py #25

Closed shohu closed 6 years ago

shohu commented 6 years ago
# test/functional/blockchain.py
2018-03-22 07:38:09.020000 TestFramework (INFO): Initializing test directory /tmp/testrstt5_5s
2018-03-22 07:38:09.806000 TestFramework (ERROR): Assertion failed
Traceback (most recent call last):
  File "/c0ban/test/functional/test_framework/test_framework.py", line 120, in main
    self.run_test()
  File "test/functional/blockchain.py", line 40, in run_test
    self._test_gettxoutsetinfo()
  File "test/functional/blockchain.py", line 59, in _test_gettxoutsetinfo
    assert_equal(res['total_amount'], Decimal('8725.00000000'))
  File "/c0ban/test/functional/test_framework/util.py", line 38, in assert_equal
    raise AssertionError("not(%s)" % " == ".join(str(arg) for arg in (thing1, thing2) + args))
AssertionError: not(4400000.00000000 == 8725.00000000)
2018-03-22 07:38:09.817000 TestFramework (INFO): Stopping nodes
2018-03-22 07:38:12.055000 TestFramework (WARNING): Not cleaning up dir /tmp/testrstt5_5s
2018-03-22 07:38:12.055000 TestFramework (ERROR): Test failed. Test logging available at /tmp/testrstt5_5s/test_framework.log
shohu commented 6 years ago

👍

# test/functional/blockchain.py
2018-03-22 07:47:40.175000 TestFramework (INFO): Initializing test directory /tmp/testta2y11ey
2018-03-22 07:47:40.653000 TestFramework (INFO): Test that gettxoutsetinfo() works for blockchain with just the genesis block
2018-03-22 07:47:40.699000 TestFramework (INFO): Test that gettxoutsetinfo() returns the same result after invalidate/reconsider block
2018-03-22 07:47:46.468000 TestFramework (INFO): Stopping nodes
2018-03-22 07:47:48.555000 TestFramework (INFO): Cleaning up
2018-03-22 07:47:48.561000 TestFramework (INFO): Tests successful