Add reproduction test for RetryLink AbortError with subscriptions#13126
Add reproduction test for RetryLink AbortError with subscriptions#13126Copilot wants to merge 6 commits into
Conversation
|
@Copilot: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
|
…tryLink and subscriptions Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
|
@copilot that's a lot, can this be condensed down? |
Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
|
@copilot keep it more realistic with a |
Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
|
related #13161 |
Reproduction for AbortError: BodyStreamBuffer issue
Minimal reproduction test for #13125 (comment)
Issue
When
RetryLinkretries a subscription usingAbortController, aborting the first attempt's controller triggersAbortError: BodyStreamBuffer was abortedwhich can interfere with the retry mechanism.Test Added
Single test in
src/link/retry/__tests__/retryLink.tsthat:HttpLinkwithmockMultipartSubscriptionStreamfor realistic multipart subscription behaviorThe test documents the scenario and serves as a regression test.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.