Skip to content

Commit

Permalink
#2195: tests: add a new test that asserts epoch is as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Oct 3, 2023
1 parent bed01a0 commit 4345027
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/unit/termination/test_term_chaining.cc
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,22 @@ TEST_F(TestTermChaining, test_termination_chaining_collective_1) {
}
}

TEST_F(TestTermChaining, test_termination_action_grouping) {
SET_NUM_NODES_CONSTRAINT(2);

auto ep1 = theTerm()->makeEpochCollective();
theMsg()->pushEpoch(ep1);

{ // scope for illustration
auto ep2 = theTerm()->makeEpochCollective();
theTerm()->finishedEpoch(ep2);

theTerm()->addAction(ep2, [ep1]{
EXPECT_EQ(theTerm()->getEpoch(), ep1);
});
}
theMsg()->popEpoch(ep1);
theTerm()->finishedEpoch(ep1);
}

}}} // end namespace vt::tests::unit

0 comments on commit 4345027

Please sign in to comment.