diff --git a/tests/unit/collectives/test_mpi_collective.cc b/tests/unit/collectives/test_mpi_collective.cc index 523cf29eea..8893217abc 100644 --- a/tests/unit/collectives/test_mpi_collective.cc +++ b/tests/unit/collectives/test_mpi_collective.cc @@ -187,8 +187,8 @@ TEST_F(TestMPICollective, test_mpi_collective_4) { scope1.mpiCollectiveAsync([&done,&bcast_val,root]{ auto comm = theContext()->getComm(); vt_print(barrier, "run MPI_Bcast\n"); - MPI_Bcast(&bcast_val, 1, MPI_INT, root, comm); - run_order[done++] = 1; + MPI_Bcast(&bcast_val, 1, MPI_INT, root, comm); + run_order[done++] = 1; }); };