Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
undertome committed Jul 1, 2021
1 parent 3a95c3f commit 5ad9f80
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/test/rpc/NodeToShardRPC_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class NodeToShardRPC_test : public beast::unit_test::suite
auto const result = env.rpc(
"json", "node_to_shard", to_string(jvParams))[jss::result];

BEAST_EXPECT(result[jss::status] == "success");
if (!BEAST_EXPECT(result[jss::status] == "success"))
std::cout << "no success: " << std::endl << result << std::endl;

auto shardStore = env.app().getShardStore();
BEAST_EXPECT(shardStore);
Expand All @@ -110,6 +111,9 @@ class NodeToShardRPC_test : public beast::unit_test::suite

BEAST_EXPECT(result[jss::firstShardIndex] == 1);
BEAST_EXPECT(result[jss::lastShardIndex] == 10);

std::cout << "status result: " << std::endl
<< result << std::endl;
}

if (boost::icl::contains(completeShards, 1))
Expand All @@ -120,6 +124,11 @@ class NodeToShardRPC_test : public beast::unit_test::suite
to_string(jvParams))[jss::result];

BEAST_EXPECT(result[jss::currentShardIndex] >= 1);

std::cout << "(current index check) - status result: "
<< std::endl
<< result << std::endl;

break;
}

Expand Down

0 comments on commit 5ad9f80

Please sign in to comment.