Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//! This module contains panics that are allowed by default to occur in logs in system-tests.

pub(crate) fn panic_sandboxed_execution_controller_reply_channel_closed() -> ! {
panic!("Sandboxed_execution_controller reply channel closed unexpectedly")
}

pub(crate) fn panic_launcher_exited_due_to_signal(pid: u32) -> ! {
panic!(
"Error from launcher process, pid {pid} exited due to signal! In test environments (e.g., PocketIC), you can safely ignore this message."
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use super::allowed_panics::panic_sandboxed_execution_controller_reply_channel_closed;
use crate::compiler_sandbox::WasmCompilerProxy;
use crate::controller_launcher_service::ControllerLauncherService;
use crate::launcher_service::LauncherService;
Expand Down Expand Up @@ -1028,7 +1029,7 @@ impl WasmExecutor for SandboxedExecutionController {
// Wait for completion.
let result = rx
.recv()
.expect("Sandboxed_execution_controller reply channel closed unexpectedly");
.unwrap_or_else(|_| panic_sandboxed_execution_controller_reply_channel_closed());
drop(wait_timer);
let _finish_timer = self
.metrics
Expand Down
Loading