Page MenuHomePhabricator

[qa] fix flaky abc-magnetic-anomaly-activation.py
ClosedPublic

Authored by schancel on Aug 27 2018, 08:10.

Details

Summary

Currently, this test has a tranasction generator for a specific size.
It slowly grows the transaction padding to ensure it is exactly 101 bytes.
However, if the penultimate iteration of the loop generates a padding with
a leftmost bit of zero, and the ultimate run generates a padding with a
leftmost bit of 1, the test will fail.

This commit ensure the leftmost bit is always 1.

Test Plan

Run in a loop for 100 runs:

./test/functional/test_runner.py abc-magnetic-anomaly-activation.py

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix-anomaly-test
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3160
Build 4407: Bitcoin ABC Buildbot (legacy)
Build 4406: arc lint + arc unit