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

Add test helper to manage test resources #106

Merged
merged 4 commits into from
Sep 17, 2020
Merged

Add test helper to manage test resources #106

merged 4 commits into from
Sep 17, 2020

Conversation

iffyio
Copy link
Collaborator

@iffyio iffyio commented Sep 13, 2020

  • The test helper is used to create test resources and
    makes sure that those resources are cleaned up at the
    end of a test case.
  • Also updates tests to use the helper instead.

Fixes #84

* The test helper is used to create test resources and
  makes sure that those resources are cleaned up at the
  end of a test case.
* Also updates tests to use the helper instead.

Fixes #84
@markmandel markmandel added area/tests Unit tests, integration tests, anything to make sure things don't break kind/feature New feature or request labels Sep 16, 2020
Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Love it! LGTM.

(local_addr, wait)
pub struct TestHelper {
pub log: Logger,
/// Channel to subscribe to, and trigger the shutdown of created resources.
Copy link
Member

Choose a reason for hiding this comment

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

We could replace server_shutdown_tx with shutdown_ch when that refactor of main.rs comes down the pipe, yeah?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes we should be able to replace it after that lands!

@markmandel markmandel merged commit bc050ca into master Sep 17, 2020
@markmandel markmandel deleted the iu/test-helper branch September 17, 2020 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, integration tests, anything to make sure things don't break cla: yes kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add helper to manage test resources
3 participants