Skip to content

Commit

Permalink
#2279: add a check in LBData dumping test
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Jun 11, 2024
1 parent 5c56914 commit 615efe1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/collection/test_lb.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ TEST_P(TestNodeLBDataDumper, test_node_lb_data_dumping_with_interval) {
EXPECT_EQ(phase["user_defined"]["new_time"], static_cast<double>(phase["id"]));
}

auto num_tasks = json["phases"][0]["tasks"].size();
auto entity = json["phases"][0]["tasks"][num_tasks - 1]["entity"];
EXPECT_EQ(entity["home"], 0);
EXPECT_EQ(entity["id"], 0);
});

if (vt::theContext()->getNode() == 0) {
Expand Down

0 comments on commit 615efe1

Please sign in to comment.