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 handlers test - increase response poll loop #923

Merged
merged 2 commits into from
Jan 9, 2021

Conversation

kevin-bates
Copy link
Member

Looks like the changes for jupyter/notebook#5908 have probably introduced an additional status response that pushed the actual kernel_info_reply out of the loop's range. Increasing it by one resolves the issue.

Resolves #922

@kevin-bates kevin-bates requested a review from lresende January 7, 2021 23:48
@@ -395,7 +395,7 @@ def test_kernel_comm(self):
}))

# Assert the reply comes back. Test will timeout if this hangs.
for _ in range(3):
for _ in range(4):
Copy link
Member

Choose a reason for hiding this comment

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

If you force Notebook to be 6.1.x other then 6.1.6, would this still work?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Prior versions will terminate the loop on the third iteration (rather than the fourth).

Copy link
Member

@lresende lresende left a comment

Choose a reason for hiding this comment

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

LGTM

@lresende lresende merged commit cde1937 into jupyter-server:master Jan 9, 2021
@kevin-bates kevin-bates deleted the fix-handlers-test branch January 9, 2021 03:32
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.

Investigate test failure when running with Notebook 6.1.6
2 participants