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

Fix bug preventing gateway rollback #3027

Merged
merged 18 commits into from Jul 15, 2019

Conversation

JacksonKearl
Copy link

No description provided.

@JacksonKearl
Copy link
Author

@abernix seems like the tests always hang on the first apolloFetch call.

@@ -106,14 +106,14 @@ describe('apollo-server-express', () => {
const apolloFetch = createApolloFetch({ uri });
const firstResult = await apolloFetch({ query: '{ id }' });

expect(firstResult.data).toEqual({ id: 'hi' });
expect(firstResult.errors).toBeUndefined();
Copy link
Author

Choose a reason for hiding this comment

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

When you assert errors to be undefined before you check if data is correct, Jest will actually tell you what the errors are instead of just saying the data is null

@abernix abernix added this to the Release 2.7.0 milestone Jul 15, 2019
@JacksonKearl JacksonKearl merged commit 522b2db into release-2.7.0 Jul 15, 2019
@abernix abernix deleted the jackson/gateway-rollback-bug branch February 25, 2020 21:03
abernix pushed a commit to apollographql/federation that referenced this pull request Sep 4, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants