Skip to content

Commit

Permalink
[FOLD] Fix VS build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez committed Jul 15, 2021
1 parent 3280111 commit d4e26b0
Showing 1 changed file with 28 additions and 26 deletions.
54 changes: 28 additions & 26 deletions src/test/rpc/NodeToShardRPC_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,23 @@ class NodeToShardRPC_test : public beast::unit_test::suite
auto shardStore = env.app().getShardStore();
BEAST_EXPECT(shardStore);

auto importCompleted = [shardStore, this](auto const& result) {
auto const info = shardStore->getShardInfo();
auto importCompleted =
[shardStore, numberOfShards, this](auto const& result) {
auto const info = shardStore->getShardInfo();

// Assume completed if the import isn't running
auto const completed =
result[jss::error_message] == "Database import not running";
// Assume completed if the import isn't running
auto const completed =
result[jss::error_message] == "Database import not running";

if (completed)
{
BEAST_EXPECT(
info->incomplete().size() + info->finalized().size() ==
numberOfShards);
}
if (completed)
{
BEAST_EXPECT(
info->incomplete().size() + info->finalized().size() ==
numberOfShards);
}

return completed;
};
return completed;
};

{
// Initiate a shard store import via the RPC
Expand Down Expand Up @@ -210,22 +211,23 @@ class NodeToShardRPC_test : public beast::unit_test::suite
auto shardStore = env.app().getShardStore();
BEAST_EXPECT(shardStore);

auto importCompleted = [shardStore, this](auto const& result) {
auto const info = shardStore->getShardInfo();
auto importCompleted =
[shardStore, numberOfShards, this](auto const& result) {
auto const info = shardStore->getShardInfo();

// Assume completed if the import isn't running
auto const completed =
result[jss::error_message] == "Database import not running";
// Assume completed if the import isn't running
auto const completed =
result[jss::error_message] == "Database import not running";

if (completed)
{
BEAST_EXPECT(
info->incomplete().size() + info->finalized().size() ==
numberOfShards);
}
if (completed)
{
BEAST_EXPECT(
info->incomplete().size() + info->finalized().size() ==
numberOfShards);
}

return completed;
};
return completed;
};

{
// Initiate a shard store import via the RPC
Expand Down

0 comments on commit d4e26b0

Please sign in to comment.