Skip to content

Commit

Permalink
[PH2][Test][Promise]
Browse files Browse the repository at this point in the history
  • Loading branch information
tanvi-jagtap committed Jan 20, 2025
1 parent 89faddc commit d313a84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/core/promise/party_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,10 @@ TEST_F(PartyTest, ThreadStressTest) {
}

// Warning : We do not guarantee that the promises will be executed in the
// order they were spawned. However, in this test, the promises never return
// Pending, so they will be executed in the order they were spawned.
// order they were spawned.
// For the given test, the order is guaranteed because we wait for the
// promise_complete notification before the next loop iteration can start.

EXPECT_STREQ(execution_order[i].c_str(), expected_order[i].c_str());
}
StressTestAsserts(start_times, end_times, 2 * kStressTestSleepMs);
Expand Down

0 comments on commit d313a84

Please sign in to comment.