diff --git a/crates/worker-runtime/src/worker_backend.rs b/crates/worker-runtime/src/worker_backend.rs index edfc77409..441e13e0a 100644 --- a/crates/worker-runtime/src/worker_backend.rs +++ b/crates/worker-runtime/src/worker_backend.rs @@ -4472,10 +4472,10 @@ mod tests { )] ); let names = captured_tool_names(&client, 0); - for forbidden in core_filesystem_tool_names() { + for expected in core_filesystem_tool_names() { assert!( - !names.contains(forbidden), - "no-workdir Worker unexpectedly exposed {forbidden}; tools={names:?}" + names.contains(expected), + "no-workdir Worker did not expose stable routed tool {expected}; tools={names:?}" ); } let observations = runtime