mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
test(msteams): avoid hanging response clones (#118096)
Co-authored-by: Peter Steinberger <steipete@mac-studio-sf2.local>
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user