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

UnixFD: Move the unit tests to a new file #97

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

poncovka
Copy link
Contributor

Clean up tests for the Unix file descriptors and move them to a new file.

* Remove extra lines.
* Improve the indentation.
Split the testing DBus interface and create a new one for UnixFD.
@poncovka poncovka added ci and tests Improvements in CI and tests refactoring Clean up of the code labels Aug 16, 2022
Copy link
Member

@jkonecny12 jkonecny12 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

proxy_args={"client": GLibClientUnix})
super().setUp()
self.server_args = {"server": GLibServerUnix}
self.client_args = {"client": GLibClientUnix}
Copy link
Member

Choose a reason for hiding this comment

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

Is it on purpose that here the variable is named client_args (renamed from proxy_args) but parent have it still as proxy_args? If yes, could you please explain this split in the commit message?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was a bug. Good catch!

The bus should be set up and teared down in the `setUp` and `tearDown` methods
of the `TestCase` class. Otherwise, the resources might not be cleaned up.
Create a new file for the UnixFD tests.
@poncovka poncovka merged commit 7b3a972 into dasbus-project:master Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci and tests Improvements in CI and tests refactoring Clean up of the code
Development

Successfully merging this pull request may close these issues.

2 participants