diff --git a/tests/unit/lb/test_offlinelb.cc b/tests/unit/lb/test_offlinelb.cc index c3ed76210f..da97a3a91c 100644 --- a/tests/unit/lb/test_offlinelb.cc +++ b/tests/unit/lb/test_offlinelb.cc @@ -43,6 +43,7 @@ #include #include +#include #include @@ -137,7 +138,9 @@ TEST_F(TestOfflineLB, test_offlinelb_1) { .wait(); for (PhaseType i = 0; i < num_phases; i++) { - proxy.broadcastCollective(i); + runInEpochCollective("run handler", [&]{ + proxy.broadcastCollective(i); + }); thePhase()->nextPhaseCollective(); } }