torproject / chutney Public
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
Bidi #28
Merged
Merged
Bidi #28
Conversation
There are all kinds of possible attribute errors that we would like to report to the developer.
This refactor probably leaves a lot of needless pieces in place; I tried to do only what was necessary to move away from a raw select() loop. Nonetheless, I think it simplifies things a bit. (We can't use asyncio yet since we're keeping compatibility with older pythons.)
Previously we counted the number of successes and failures, and compared them to the number of expected tests. That's fragile, if we forget to count a test or if we count a success more than once. Now we give every test a name, and we only allow tests to succeed or fail once.
Now data is generated by a DataSource type, and consumed by a DataChecker type that compares its incoming data against the data in a DataSource.
We'd like to be able to change the client and responder behavior, but we need to keep both parts synchronized as we do so.
The default client/responder pair is no longer source/sink, but echoclient/echoserver.
This should prevent multiple in-process runs from interfering
Additionally, give them nicer unique names, and warn if we accidentally double-add a test or something.
|
Closing and re-opening to get a new master merge and CI. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
No description provided.
The text was updated successfully, but these errors were encountered: