Skip to content
Commit Detail

Commit 56aeaf3

Author
Harris Hancock <harris@cloudflare.com> 2026-02-13 16:24:04 +0000
Parents
78896ae
Tree
8de7e94
test: add streaming tail worker test for logWarning() visibility

Add a two-worker test that exercises several logWarning() code paths and
verifies the warnings are visible to a streaming tail worker:

  - FormData body with a custom Content-Type header (Body::Body)
  - Null-body status with zero-length body (Response constructor)

The "trigger" worker generates warnings in its fetch() handler, invoked
via a service binding from its test() entrypoint. The "tail" worker
collects streaming tail events and asserts that all expected warning
substrings appear within a polling timeout.

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed