Skip to content

Commit

Permalink
#883: test: Fix test_route_entity test after changes to bcast
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jan 22, 2021
1 parent d386c5c commit c8b5015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/location/test_location.cc
Original file line number Diff line number Diff line change
Expand Up @@ -353,14 +353,14 @@ TYPED_TEST_P(TestLocationRoute, test_route_entity) {
auto msg = vt::makeMessage<MsgType>(entity, my_node, is_long);
vt::theMsg()->broadcastMsg<MsgType, location::routeTestHandler<TypeParam>>(msg);

while (msg_count < nb_nodes - 1) { vt::runScheduler(); }
vt::theSched()->runSchedulerWhile([&msg_count, nb_nodes]{ return msg_count < nb_nodes; });

vt_debug_print(
location, node,
"TestLocationRoute: all messages have been arrived\n"
);

EXPECT_EQ(msg_count, nb_nodes - 1);
EXPECT_EQ(msg_count, nb_nodes);
}
}

Expand Down

0 comments on commit c8b5015

Please sign in to comment.