test(msteams): avoid hanging response clones (#118096)

Co-authored-by: Peter Steinberger <steipete@mac-studio-sf2.local>
This commit is contained in:
Peter Steinberger
2026-08-02 11:04:38 -07:00
committed by GitHub
parent c28b524f38
commit 6c29fc154f
@@ -107,7 +107,9 @@ function createMockFetch(entries: Array<{ match: RegExp; response: Response }>):
if (!entry) {
return new Response("not found", { status: 404 });
}
return entry.response.clone();
// Fetch returns one body. Cloning tees it, so canceling the returned branch
// would wait forever for the untouched fixture branch to be canceled too.
return entry.response;
}) as typeof fetch;
}