Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for unit test bulk.offline_send #3362

Merged

Conversation

dsiganos
Copy link
Contributor

The test expected the ledger to be able to report a block as confirmed
because the active transaction container was empty. But it has to allow
for some time for the data/event to flow to the ledger.

Converted an assert to an assert timely to allow for that propagation.

This is the failure:
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from bulk
[ RUN ] bulk.offline_send
/home/ds/nano/branches/develop/nano-node/nano/core_test/bootstrap.cpp:1764: Failure
Value of: node1->block_confirmed (send1->hash ())
Actual: false
Expected: true
terminate called after throwing an instance of 'testing::internal::GoogleTestFailureException'
what(): /home/ds/nano/branches/develop/nano-node/nano/core_test/bootstrap.cpp:1764: Failure
Value of: node1->block_confirmed (send1->hash ())
Actual: false
Expected: true
Aborted

The test expected the ledger to be able to report a block as confirmed
because the active transaction container was empty. But it has to allow
for some time for the data/event to flow to the ledger.

Converted an assert to an assert timely to allow for that propagation.

This is the failure:
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from bulk
[ RUN      ] bulk.offline_send
/home/ds/nano/branches/develop/nano-node/nano/core_test/bootstrap.cpp:1764: Failure
Value of: node1->block_confirmed (send1->hash ())
  Actual: false
Expected: true
terminate called after throwing an instance of 'testing::internal::GoogleTestFailureException'
  what():  /home/ds/nano/branches/develop/nano-node/nano/core_test/bootstrap.cpp:1764: Failure
Value of: node1->block_confirmed (send1->hash ())
  Actual: false
Expected: true
Aborted
@dsiganos dsiganos merged commit 062f3fc into nanocurrency:develop Jun 30, 2021
@zhyatt zhyatt added the unit test Related to a new, changed or fixed unit test label Jul 16, 2021
@zhyatt zhyatt added this to the V23.0 milestone Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unit test Related to a new, changed or fixed unit test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants