Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Sep 24, 2024
1 parent 1cf1cd7 commit d4cac87
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3807,4 +3807,25 @@ TEST (node, local_block_broadcast)
node1.network.merge_peer (node2.network.endpoint ());
ASSERT_TIMELY (5s, node1.network.find_node_id (node2.get_node_id ()));
ASSERT_TIMELY (10s, node2.block (send1->hash ()));
}

TEST (node, container_info)
{
nano::test::system system;
auto & node1 = *system.add_node ();
auto & node2 = *system.add_node ();

// Generate some random activity
std::vector<nano::account> accounts;
auto dev_genesis_key = nano::dev::genesis_key;
system.wallet (0)->insert_adhoc (dev_genesis_key.prv);
accounts.push_back (dev_genesis_key.pub);
for (int n = 0; n < 10; ++n)
{
system.generate_activity (node1, accounts);
}

// This should just execute, sanitizers will catch any problems
ASSERT_NO_THROW (node1.container_info ());
ASSERT_NO_THROW (node2.container_info ());
}

0 comments on commit d4cac87

Please sign in to comment.