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

Update Deepmind tests for Savanna #197

Merged
merged 3 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
326 changes: 306 additions & 20 deletions unittests/deep-mind/deep-mind.log

Large diffs are not rendered by default.

18 changes: 12 additions & 6 deletions unittests/deep_mind_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ struct deep_mind_log_fixture
}
};

struct deep_mind_tester : deep_mind_log_fixture, validating_tester
// We only test deep-mind in Savanna
struct deep_mind_tester : deep_mind_log_fixture, savanna_validating_tester
{
deep_mind_tester() : validating_tester({}, &deep_mind_logger, setup_policy::full) {}
deep_mind_tester() : savanna_validating_tester({}, &deep_mind_logger, setup_policy::full) {}
};

namespace {
Expand Down Expand Up @@ -86,18 +87,23 @@ BOOST_AUTO_TEST_SUITE(deep_mind_tests)

BOOST_FIXTURE_TEST_CASE(deep_mind, deep_mind_tester)
{
produce_block();

// We have already transitioned into Savanna
create_account( "alice"_n );

push_action(config::system_account_name, "updateauth"_n, "alice"_n, fc::mutable_variant_object()
("account", "alice")
("permission", "test1")
("parent", "active")
("auth", authority{{"eosio"_n, "active"_n}}));

produce_block();

// Update proposer schedule
vector<account_name> producers = { "bob"_n, "carol"_n, "charlie"_n };
create_accounts(producers);
set_producers(producers);

// Produce 2 rounds to make the schedule active
produce_blocks(config::producer_repetitions * 2);

bool save_log = [](){
auto argc = boost::unit_test::framework::master_test_suite().argc;
auto argv = boost::unit_test::framework::master_test_suite().argv;
Expand Down
Loading