shohu / c0ban

c0ban source tree
MIT License
0 stars 0 forks source link

Pass for bip9-softforks.py #42

Closed shohu closed 6 years ago

shohu commented 6 years ago

test code output

# test/functional/bip9-softforks.py
2018-06-01 09:38:28.347000 TestFramework (INFO): Initializing test directory /tmp/test7pyact22
2018-06-01 09:38:28.629000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:15445
2018-06-01 09:38:29.323000 TestFramework.comptool (INFO): Test 1: PASS
2018-06-01 09:38:29.577000 TestFramework.comptool (INFO): Test 2: PASS
2018-06-01 09:38:29.823000 TestFramework.comptool (INFO): Test 3: PASS

2018-06-01 09:43:24.378000 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/bip9-softforks.py", line 40, in run_test
    self.test.run()
  File "/c0ban/test/functional/test_framework/comptool.py", line 389, in run
    self.sync_blocks(block.sha256, len(test_instance.blocks_and_transactions))
  File "/c0ban/test/functional/test_framework/comptool.py", line 213, in sync_blocks
    wait_until(blocks_requested, attempts=20*num_blocks, lock=mininode_lock)
  File "/c0ban/test/functional/test_framework/util.py", line 221, in wait_until
    assert_greater_than(attempts, attempt)
  File "/c0ban/test/functional/test_framework/util.py", line 42, in assert_greater_than
    raise AssertionError("%s <= %s" % (str(thing1), str(thing2)))
AssertionError: 5700 <= 5700
2018-06-01 09:43:24.407000 TestFramework (INFO): Stopping nodes
2018-06-01 09:43:26.496000 TestFramework (WARNING): Not cleaning up dir /tmp/test7pyact22
2018-06-01 09:43:26.496000 TestFramework (ERROR): Test failed. Test logging available at /tmp/test7pyact22/test_framework.log

debug.log

Maybe not related
shohu commented 6 years ago

I changed to #35 source. I got success.

# test/functional/bip9-softforks.py
2018-06-05 07:17:44.337000 TestFramework (INFO): Initializing test directory /tmp/testzn__t088
2018-06-05 07:17:44.604000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:15578
2018-06-05 07:17:45.227000 TestFramework.comptool (INFO): Test 1: PASS
2018-06-05 07:17:45.489000 TestFramework.comptool (INFO): Test 2: PASS
2018-06-05 07:17:45.733000 TestFramework.comptool (INFO): Test 3: PASS
2018-06-05 07:17:46.121000 TestFramework.comptool (INFO): Test 4: PASS
2018-06-05 07:17:46.703000 TestFramework.comptool (INFO): Test 5: PASS
2018-06-05 07:17:47.302000 TestFramework.comptool (INFO): Test 6: PASS
2018-06-05 07:17:47.552000 TestFramework.comptool (INFO): Test 7: PASS
2018-06-05 07:17:48.220000 TestFramework.comptool (INFO): Test 8: PASS
2018-06-05 07:17:48.440000 TestFramework.comptool (INFO): Test 9: PASS
2018-06-05 07:17:48.552000 TestFramework.comptool (INFO): Test 10: PASS
2018-06-05 07:17:50.753000 TestFramework (INFO): Initializing test directory /tmp/testzn__t088
2018-06-05 07:17:51.018000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:15578
2018-06-05 07:17:53.641000 TestFramework.comptool (INFO): Test 11: PASS
2018-06-05 07:17:54.687000 TestFramework.comptool (INFO): Test 12: PASS
2018-06-05 07:17:55.117000 TestFramework.comptool (INFO): Test 13: PASS
2018-06-05 07:17:56.931000 TestFramework.comptool (INFO): Test 14: PASS
2018-06-05 07:17:59.516000 TestFramework.comptool (INFO): Test 15: PASS
2018-06-05 07:18:02.308000 TestFramework.comptool (INFO): Test 16: PASS
2018-06-05 07:18:02.946000 TestFramework.comptool (INFO): Test 17: PASS
2018-06-05 07:18:05.876000 TestFramework.comptool (INFO): Test 18: PASS
2018-06-05 07:18:06.100000 TestFramework.comptool (INFO): Test 19: PASS
2018-06-05 07:18:06.212000 TestFramework.comptool (INFO): Test 20: PASS
2018-06-05 07:18:08.414000 TestFramework (INFO): Initializing test directory /tmp/testzn__t088
2018-06-05 07:18:08.675000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:15578
2018-06-05 07:18:12.682000 TestFramework.comptool (INFO): Test 21: PASS
2018-06-05 07:18:14.501000 TestFramework.comptool (INFO): Test 22: PASS
2018-06-05 07:18:15.268000 TestFramework.comptool (INFO): Test 23: PASS
2018-06-05 07:18:18.231000 TestFramework.comptool (INFO): Test 24: PASS
2018-06-05 07:18:22.614000 TestFramework.comptool (INFO): Test 25: PASS
2018-06-05 07:18:26.691000 TestFramework.comptool (INFO): Test 26: PASS
2018-06-05 07:18:27.433000 TestFramework.comptool (INFO): Test 27: PASS
2018-06-05 07:18:31.764000 TestFramework.comptool (INFO): Test 28: PASS
2018-06-05 07:18:31.985000 TestFramework.comptool (INFO): Test 29: PASS
2018-06-05 07:18:32.045000 TestFramework.comptool (INFO): Test 30: PASS
2018-06-05 07:18:34.313000 TestFramework (INFO): Initializing test directory /tmp/testzn__t088
2018-06-05 07:18:34.579000 TestFramework.mininode (INFO): Connecting to Bitcoin Node: 127.0.0.1:15578
2018-06-05 07:18:34.740000 TestFramework (INFO): Stopping nodes
2018-06-05 07:18:36.909000 TestFramework (INFO): Cleaning up
2018-06-05 07:18:36.911000 TestFramework (INFO): Tests successful