Assert the given futures are *eventually* successful
| 1448 | |
| 1449 | // Assert the given futures are *eventually* successful |
| 1450 | void AssertSpanSuccessful(int start, int stop) { |
| 1451 | const auto& futures = executor_->futures(); |
| 1452 | for (int fut_index = start; fut_index < stop; ++fut_index) { |
| 1453 | ASSERT_OK(futures[fut_index].status()); |
| 1454 | ASSERT_EQ(*futures[fut_index].result(), fut_index); |
| 1455 | } |
| 1456 | } |
| 1457 | |
| 1458 | void AssertAllSuccessful() { |
| 1459 | AssertSpanSuccessful(0, static_cast<int>(executor_->futures().size())); |