Skip to content

Pass for test pruning.py #30

@shohu

Description

@shohu
# test/functional/pruning.py
2018-03-26 00:35:14.726000 TestFramework (INFO): Initializing test directory /tmp/testx8gd93d7
2018-03-26 00:35:31.708000 TestFramework (INFO): Warning! This test requires 4GB of disk space and takes over 30 mins (up to 2 hours)
2018-03-26 00:35:31.708000 TestFramework (INFO): Mining a big blockchain of 995 blocks
2018-03-26 00:39:20.902000 TestFramework (INFO): Check that we haven't started pruning yet because we're below PruneAfterHeight
2018-03-26 00:39:20.903000 TestFramework (INFO): Success
2018-03-26 00:39:20.903000 TestFramework (INFO): Though we're already using more than 550MiB, current usage: 590
2018-03-26 00:39:20.903000 TestFramework (INFO): Mining 25 more blocks should cause the first block file to be pruned
2018-03-26 00:39:29.199000 TestFramework (INFO): Success
2018-03-26 00:39:29.199000 TestFramework (INFO): Usage should be below target: 479
2018-03-26 00:39:29.199000 TestFramework (INFO): Check that we'll exceed disk space target if we have a very high stale block rate
2018-03-26 00:39:29.200000 TestFramework (INFO): Mine 24 (stale) blocks on Node 1, followed by 25 (main chain) block reorg from Node 0, for 12 rounds
2018-03-26 00:46:22.058000 TestFramework (INFO): Usage can be over target because of high stale rate: 634
2018-03-26 00:46:22.060000 TestFramework (INFO): Check that we can survive a 288 block reorg still
2018-03-26 00:46:25.262000 TestFramework (INFO): Current block height: 1320
2018-03-26 00:46:25.263000 TestFramework (INFO): Invalidating block 607aa48a80386b398f96001495ea6efc7988be7a6c6d8c4e66a7fc6b52ccf371 at height 1033
2018-03-26 00:46:31.157000 TestFramework (INFO): New best height: 1032
2018-03-26 00:46:34.269000 TestFramework (INFO): Generating new longer chain of 300 more blocks
2018-03-26 00:46:36.095000 TestFramework (INFO): Reconnect nodes
2018-03-26 00:46:41.450000 TestFramework (INFO): Verify height on node 2: 1332
2018-03-26 00:46:41.450000 TestFramework (INFO): Usage possibly still high bc of stale blocks in block files: 648
2018-03-26 00:46:41.450000 TestFramework (INFO): Mine 220 more blocks so we have requisite history (some blocks will be big and cause pruning of previous chain)
2018-03-26 00:47:35.934000 TestFramework (INFO): Usage should be below target: 773
2018-03-26 00:47:35.935000 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/pruning.py", line 390, in run_test
    (self.forkheight,self.forkhash) = self.reorg_test() #(1033, )
  File "test/functional/pruning.py", line 182, in reorg_test
    raise AssertionError("Pruning target not being met")
AssertionError: Pruning target not being met
2018-03-26 00:47:35.963000 TestFramework (INFO): Stopping nodes
2018-03-26 00:47:42.547000 TestFramework (WARNING): Not cleaning up dir /tmp/testx8gd93d7
2018-03-26 00:47:42.547000 TestFramework (ERROR): Test failed. Test logging available at /tmp/testx8gd93d7/test_framework.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions