mirror of https://github.com/bitcoin/bitcoin
Merge bitcoin/bitcoin#30942: test: Remove dead code from interface_zmq test
pull/28676/mergec4dc81f9c6
test: Remove dead code from interface_zmq (Fabian Jahr) Pull request description: The loop removed here appears to be effectively dead code: In case `get_raw_seq` is behind `zmq_mem_seq` the loop runs and tries to get a more recent (higher) number for `get_raw_seq`. However, the exact number of `get_raw_seq` is asserted in the line above: `assert_equal(get_raw_seq, 6)`. If the loop would actually achieve its purpose this assert would need to be racy. This does not seem to be the case and 6 appears to be the final number. `zmq_mem_seq` however does take some time to catch up (if it were continue to be updated). But this is not handled by the loop and does not seem to be relevant at this point in the test. The backlog is consumed a bit later in another loop that handles this correctly already. ACKs for top commit: l0rinc: ACKc4dc81f9c6
tdb3: CR re ACKc4dc81f9c6
Tree-SHA512: 663a1711ba1ce04a3d2e2916e0df7a7bb51069e28bc2644b816a483628c95b5e6c29fc6eacc31a5f72b7d9af11096f3c437ea1dc57eaa1ee9ddce43cc20bacd3
commit
da10e0bab4
Loading…
Reference in new issue