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

Need test coverage for errors during wait period #1

Open
stuarteberg opened this issue Nov 13, 2017 · 0 comments
Open

Need test coverage for errors during wait period #1

stuarteberg opened this issue Nov 13, 2017 · 0 comments

Comments

@stuarteberg
Copy link
Member

It just occurred to me that I'm not quite sure what happens in one (relatively minor) corner case: If a Python client encounters an exception while waiting for the resource, what happens? We should add a test case at some point.

client = ResourceManagerClient(mgr_ip, mgr_port)
with client.access_context( resource, False, 1, 1000 ): # What happens if an exception happens
                                                        # here, say, a KeyboardInterrupt?
    do_stuff_with_resource()
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

No branches or pull requests

1 participant