| 854 | |
| 855 | template <class T> |
| 856 | void throwIfError(const std::vector<Future<ErrorOr<T>>>& futures, std::string errorMsg) { |
| 857 | for (auto& future : futures) { |
| 858 | if (future.get().isError()) { |
| 859 | TraceEvent(SevError, errorMsg.c_str()).error(future.get().getError()); |
| 860 | throw future.get().getError(); |
| 861 | } |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | ACTOR Future<DistributedTestResults> runWorkload(Database cx, |
| 866 | std::vector<TesterInterface> testers, |
no test coverage detected