@@ -169,14 +169,17 @@ class WorkerPoolMock : public WorkerPool {
169
169
using WorkerPool::PopWorkerCallbackInternal;
170
170
171
171
// Mock `PopWorkerCallbackAsync` to synchronized function.
172
- void PopWorkerCallbackAsync (PopWorkerCallback callback,
173
- std::shared_ptr<WorkerInterface> worker,
174
- PopWorkerStatus status = PopWorkerStatus::OK) override {
175
- PopWorkerCallbackInternal (callback, worker, status);
172
+ void PopWorkerCallbackAsync (
173
+ PopWorkerCallback callback,
174
+ std::shared_ptr<WorkerInterface> worker,
175
+ PopWorkerStatus status,
176
+ const std::string &runtime_env_setup_error_message = " " ) override {
177
+ PopWorkerCallbackInternal (callback, worker, status, runtime_env_setup_error_message);
176
178
}
177
179
178
180
Process StartProcess (const std::vector<std::string> &worker_command_args,
179
- const ProcessEnvironment &env) override {
181
+ const ProcessEnvironment &env,
182
+ std::error_code &ec) override {
180
183
// Use a bogus process ID that won't conflict with those in the system
181
184
auto pid = static_cast <pid_t >(PID_MAX_LIMIT + 1 + worker_commands_by_proc_.size ());
182
185
last_worker_process_ = Process::FromPid (pid);
0 commit comments