You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c9812ae
Browse filesBrowse the repository at this point in the historyBrowse files
test(cloudflare): Enable multi-worker tests for CF integration tests (#19938)
This adds tests for multi worker in integration tests by adding a
`wrangler-sub-worker.jsonc` into it. Everything else is then according
the official [Service Binding
docs](https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/).
So in the `worker-service-bindings` folder there is now a test which
connects "Worker A" with "Worker B". This is enabled by having "Worker
B" running as `wrangler-sub-worker.jsonc` and "Worker A" is referencing
to "Worker B" inside the normal "wrangler.jsonc". Inside "Worker A" you
can then use `env.ANOTHER_WORKER` to have an RPC between two workers.
This will be important for the tests for #16898
0 commit comments