runtime: dry-check worker restore
This commit is contained in:
@@ -2749,6 +2749,17 @@ fn embedded_worker_projection_diagnostics(
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(restore_dry_check) = execution.restore_dry_check.as_ref() {
|
||||
diagnostics.push(diagnostic(
|
||||
"embedded_worker_execution_restore_dry_check",
|
||||
DiagnosticSeverity::Error,
|
||||
format!(
|
||||
"Worker restore dry-test {}: {}",
|
||||
restore_dry_check.code, restore_dry_check.message
|
||||
),
|
||||
));
|
||||
}
|
||||
|
||||
diagnostics
|
||||
}
|
||||
|
||||
|
||||
@@ -6915,6 +6915,15 @@ mod tests {
|
||||
.cleanup_working_directory(working_directory_id)
|
||||
}
|
||||
|
||||
fn dry_restore_worker(
|
||||
&self,
|
||||
_request: worker_runtime::execution::WorkerExecutionRestoreDryRequest,
|
||||
) -> worker_runtime::execution::WorkerRestoreDryCheck {
|
||||
worker_runtime::execution::WorkerRestoreDryCheck::valid(
|
||||
"deterministic test backend dry restore ok",
|
||||
)
|
||||
}
|
||||
|
||||
fn spawn_worker(
|
||||
&self,
|
||||
request: worker_runtime::execution::WorkerExecutionSpawnRequest,
|
||||
|
||||
Reference in New Issue
Block a user