Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to demonstrate client abort #84

Merged
merged 2 commits into from
Jun 19, 2018
Merged

Add tests to demonstrate client abort #84

merged 2 commits into from
Jun 19, 2018

Conversation

mike-marcacci
Copy link
Collaborator

@mike-marcacci mike-marcacci commented Jun 18, 2018

Fixes #79.

This PR includes tests from #81 which demonstrate a client abort, as requested in #77 and #83. Note that because tap runs the sub-tests sequentially (even they are instantiated in parallel and awaited inside a Promise.all()) this actually exposes a bug where apollo-upload-server can hang indefinitely. This is a separate issue from #77, and is addressed by #81.

@@ -73,6 +73,8 @@
"watch": "watch 'npm test --silent' src --interval 1",
"test": "FORCE_COLOR=1 TAP_COLORS=1 npm-run-all build:clean -p build:mjs build:js -s build:prettier -p lint:* tap:* -c --aggregate-output --silent",
"prepublishOnly": "npm test",
"test:js": "FORCE_COLOR=1 TAP_COLORS=1 npm-run-all build:clean build:js tap:js",
"test:mjs": "FORCE_COLOR=1 TAP_COLORS=1 npm-run-all build:clean build:mjs tap:mjs",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not following the reasons for this change, but I have a new approach to scripts that I'll copy over soon from graphql-api-koa and graphql-react: https://github.com/jaydenseric/graphql-api-koa/blob/master/package.json#L58. It leverages prepare so people can npm install a git url to use forks and even specific commits.

@jaydenseric jaydenseric merged commit d91162d into master Jun 19, 2018
@jaydenseric
Copy link
Owner

🙌

@jaydenseric jaydenseric deleted the add-abort-test branch July 20, 2018 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants