nano-node icon indicating copy to clipboard operation
nano-node copied to clipboard

Unit test telemetry.remove_peer_different_genesis_udp fails on occasion (rarely)

Open dsiganos opened this issue 3 years ago • 2 comments

Summary

Unit test telemetry.remove_peer_different_genesis_udp fails on occasion (rarely). Here is one such failure:

Repeating all tests (iteration 2782) . . .

Note: Google Test filter = telemetry.remove_peer_different_genesis_udp
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from telemetry
[ RUN      ] telemetry.remove_peer_different_genesis_udp
/fast/lastcontacted/nano-node/nano/core_test/telemetry.cpp:613: Failure
Expected equality of these values:
  1
  node0->network.excluded_peers.peers.get<nano::peer_exclusion::tag_endpoint> ().count (node1->network.endpoint ().address ())
    Which is: 0
terminate called after throwing an instance of 'testing::internal::GoogleTestFailureException'
  what():  /fast/lastcontacted/nano-node/nano/core_test/telemetry.cpp:613: Failure
Expected equality of these values:
  1
  node0->network.excluded_peers.peers.get<nano::peer_exclusion::tag_endpoint> ().count (node1->network.endpoint ().address ())
    Which is: 0
Aborted (core dumped)

Node version

33a974155ddf4b10fc3d2c72e4c20a8abe514aef

Build details

Manual debug build

OS and version

Ubuntu 24.04

Steps to reproduce the behavior

./core_test --gtest_filter=telemetry.remove_peer_different_genesis_udp --gtest_repeat=10000 --gtest_throw_on_failure

Expected behavior

To pass

Actual behavior

It fails

Possible solution

No response

Supporting files

No response

dsiganos avatar May 14 '21 17:05 dsiganos