Skip to content

Commit

Permalink
#2092: determine is_eager before msg move
Browse files Browse the repository at this point in the history
  • Loading branch information
stmcgovern committed May 16, 2023
1 parent 645c442 commit ef593be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/location/test_location_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ void verifyCacheConsistency(
// create an entity message to route
auto msg = vt::makeMessage<MsgT>(entity, my_node);

// check the routing protocol to be used by the manager.
bool is_eager = theLocMan()->virtual_loc->useEagerProtocol(msg);

// perform the checks only after all entity messages have been
// correctly delivered
runInEpochCollective([&]{
Expand All @@ -157,8 +160,6 @@ void verifyCacheConsistency(
});

if (my_node not_eq home) {
// check the routing protocol to be used by the manager.
bool is_eager = theLocMan()->virtual_loc->useEagerProtocol(msg);

// check for cache updates
bool is_entity_cached = isCached(entity);
Expand Down

0 comments on commit ef593be

Please sign in to comment.